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: [Solved]: sizing issue  (Read 4370 times)

0 Members and 1 Guest are viewing this topic.

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
[Solved]: sizing issue
« 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

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
« Last Edit: April 08, 2008, 07:06:05 am by Joachim Müller »
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #1 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
Logged

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: sizing issue
« Reply #2 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
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #3 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
Logged

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: sizing issue
« Reply #4 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
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #5 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.
Logged

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: sizing issue
« Reply #6 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
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #7 on: April 07, 2008, 11:33:07 pm »

Brad,

I'm seeing this code:
Code: [Select]
<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?
Logged

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: sizing issue
« Reply #8 on: April 07, 2008, 11:48:59 pm »

no, my theme.html looks like this:

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

Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #9 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.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: sizing issue
« Reply #10 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!!
Logged

nocturnal

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: sizing issue
« Reply #11 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.