Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Icon alignment  (Read 3093 times)

0 Members and 1 Guest are viewing this topic.

Anhinga

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
    • Snakebird.net
Icon alignment
« 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?
« Last Edit: July 16, 2005, 11:32:08 am by GauGau »
Logged

Nibbler

  • Guest
Re: Icon alignment
« Reply #1 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.