Icon alignment Icon alignment
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Icon alignment

Started by Anhinga, July 16, 2005, 04:30:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anhinga

I've almost finished editing the theme of my Coppermine gallery ( www.snakebird.net/gallery ), but I have one more question about it:  when I'm using the SMF theme, how do I control the alignment of the on/off GIF files that show whether or not a category has something new in it?

Right now they're horizontally aligned to the right, so they appear just to the left of the text that describes each category.  But I'd like to make them horizontally centered, so that they appear halfway between this text and the left-hand border of the frame.  Does anyone know how to change that?

Nibbler

Find

<!-- BEGIN catrow -->
        <tr>
                <td class="tableb"><table border=0 ><tr><td><IMG title="No New Posts" alt="No New Posts" src="themes/smf/images/off.gif" border=0>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
                <td class="tableb" align="center">{ALB_COUNT}</td>
                <td class="tableb" align="center">{PIC_COUNT}</td>
        </tr>


Change to

<!-- BEGIN catrow -->
        <tr>
                <td class="tableb" style="padding-left:5px;"><table border="0" ><tr><td><img style="padding-right:5px;" title="No New Posts" alt="No New Posts" src="themes/smf/images/off.gif" border="0">{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
                <td class="tableb" align="center">{ALB_COUNT}</td>
                <td class="tableb" align="center">{PIC_COUNT}</td>
        </tr>


Also the theme's template.html seems to be missing the <head>, you may like to add that in.