coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: nocturnal on April 07, 2008, 09:33:20 PM

Title: [Solved]: sizing issue
Post by: nocturnal on April 07, 2008, 09:33:20 PM
I'm nearly finished with my new template, and there's just one area that I can't seem to fix. I'm wanting to shorten the area directly below my galleries border. I have a red border surrounding my gallery and then a tan border of 7px that surrounds the red one. I can't figure out how to shorten the tan border below the gallery?

Here's my page: http://www.iriebean.com/photos/index.php?theme=irie_bean (http://www.iriebean.com/photos/index.php?theme=irie_bean)

I tried using negative margins in .footer but when I made the home page look correct the displayimage.php page would be cut off at the bottom. Is there anyway to universally shorten that area of my template?

Thanks in advace,
Brad
Title: Re: sizing issue
Post by: steveeh131047 on April 07, 2008, 10:00:22 PM
Brad,

Not sure it's the source of your problem, but:

1) Below your main table there is a 7px high spacer image
2) a <br/> tag

both of which will be pushing your "tan" area down.

If all else fails you could move the "powered by coppermine" credit into that area and make it 20pt high to give it the credit deserves  ;)

Steve
Title: Re: sizing issue
Post by: nocturnal on April 07, 2008, 10:43:48 PM
Looks like both the spacer and the line break are coming from themes.inc.php from the includes folder. I removed both and it didn't make any difference in the height...


Thanks,
Brad
Title: Re: sizing issue
Post by: steveeh131047 on April 07, 2008, 10:49:22 PM
Brad,

The cpg stuff is missing from your site at the moment. If you can get it back, I'll take another look.

Steve
Title: Re: sizing issue
Post by: nocturnal on April 07, 2008, 10:58:20 PM
cpg stuff? what do you mean?


After your last comment I was looking at the code that was getting outputted and noticed this:

<div class="footer" align="center" style="padding-top: 10px;">

Where is padding-top: 10px coming from? that has to be what's pushing everything down.

Thanks,
Brad
Title: Re: sizing issue
Post by: steveeh131047 on April 07, 2008, 11:16:06 PM
The comment about "cpg stuff" ?  Finger trouble on my part !

If I use Firebug to reduce that spacer image height to zero, and take out the 10px top padding from the footer class, it all closes up quite nicely. But I can't readily see where they are being styled.
Title: Re: sizing issue
Post by: nocturnal on April 07, 2008, 11:31:19 PM

Yeah... I can't fiure it out either? It's not coming from the .footer tag in my css:

.footer {
   font-size : 9px;
   padding-top: 0px
}

I even have a padding-top of 0 and it doesn't change a thing. Does anyone know where that padding-top: 10px; from the div class="footer" comes from?

Thanks,
Brad
Title: Re: sizing issue
Post by: steveeh131047 on April 07, 2008, 11:33:07 PM
Brad,

I'm seeing this code:
<div align="center" style="padding-top: 10px;" class="footer">Powered by <a rel="external" title="Coppermine Photo Gallery" href="http://coppermine-gallery.net/">Coppermine Photo Gallery</a></div>

If I change the padding-top to zero and insert something like: margin-top -10px; it collapses nicely

Is this in your theme.html so that you can edit it?
Title: Re: sizing issue
Post by: nocturnal on April 07, 2008, 11:48:59 PM
no, my theme.html looks like this:

{SYS_MENU}{SUB_MENU} {LANGUAGE_SELECT_FLAGS}
{THEME_SELECT_LIST}
                    {LANGUAGE_SELECT_LIST}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center">
      <table width="777" border="0" cellpadding="4" cellspacing="0">
        <tr>
          <td valign="top" style="border: 1px solid #666666;background-color:#D1BD8B;"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" valign="top">{ADMIN_MENU}{CUSTOM_HEADER}{GALLERY}</td>
                </tr>
            </table></td></tr>
      </table>
  <table width="777" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="right"><a href="login.php?referer=index.php" title="Log me in">Login</a></div></td>
  </tr>
</table>

    </div></td>
  </tr>
</table>
{CUSTOM_FOOTER}


I assumed the footer (along with that padding-top:10) was coming from the included {Gallery} token. I'm not sure where that is to edit?

Title: Re: sizing issue
Post by: steveeh131047 on April 07, 2008, 11:53:36 PM
Firebug is showing your 0px margin-top being overriden by the 10px figure, but it's not showing any margin re-definitions; so you might try setting margin-top to some negative value in your footer css and seeing if that works.
Title: Re: sizing issue
Post by: steveeh131047 on April 08, 2008, 12:12:17 AM
This posting looks relevant:
http://forum.coppermine-gallery.net/index.php/topic,17893.0.html

Looks like it might have been a request for a change in v1.5

PS your site looks great anyway!!
Title: Re: sizing issue
Post by: nocturnal on April 08, 2008, 12:31:05 AM
Ahhh, well at least we're not crazy.

Yeah, I played around with the margin-top and got something I'm happy with.

Thanks for all your help!
-Brad