[Solved]: sizing issue [Solved]: sizing issue
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: sizing issue

Started by nocturnal, April 07, 2008, 09:33:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nocturnal

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

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

steveeh131047

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

nocturnal

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

steveeh131047

Brad,

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

Steve

nocturnal

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

steveeh131047

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.

nocturnal


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

steveeh131047

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?

nocturnal

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?


steveeh131047

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.

steveeh131047

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!!

nocturnal

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