Icon alignment Icon alignment
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.