forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Anhinga on July 16, 2005, 04:30:18 am

Title: Icon alignment
Post by: Anhinga on July 16, 2005, 04:30:18 am
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?
Title: Re: Icon alignment
Post by: Nibbler on July 16, 2005, 04:56:39 am
Find

Code: [Select]
<!-- 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

Code: [Select]
<!-- 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.