Advanced search  

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

Pages: [1]   Go Down

Author Topic: Copyright padding-top  (Read 5750 times)

0 Members and 1 Guest are viewing this topic.

JimmyGee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Copyright padding-top
« on: December 04, 2005, 02:48:41 pm »

Can someone please tell me where I can change the copyright padding-top which is currently set to 10px, I need it at 5px.
« Last Edit: December 12, 2005, 07:22:12 am by GauGau »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Copyright padding-top
« Reply #1 on: December 04, 2005, 06:18:15 pm »

How about some CSS precedence in your theme's style.css (under .footer)?
Code: [Select]
padding-top: 5px !important;Flex those CSS muscles!
Logged

JimmyGee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Copyright padding-top
« Reply #2 on: December 04, 2005, 08:09:00 pm »

Thanks I tried that but it doesn't override it. The padding is still in my source code and doesnt look like it can be overridden because it is a  style element within the tag -
Code: [Select]
<img src="images/spacer.gif" width="1" height="10" border="" alt="" />
<div class="footer" align="center" style="padding-top: 10px;">Powered by <a href="http://coppermine.sourceforge.net/" title="Coppermine Photo Gallery" rel="external">Coppermine Photo Gallery</a></div>
Any other suggestions? I tried adding what you gave me in my theme folders .css file but that does nothing.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Copyright padding-top
« Reply #3 on: December 04, 2005, 09:35:33 pm »

The tag "!important" is the err... important tag.  I tried it and it works fine.  I put in padding-top: 100px and whoa buddy, 100 pixels of padding was added above Coppermine credit tag.

!important makes the style sheet element take precedence over the inline element.  The inline element is cascaded away.

So in my style.css I put to show it works:
Code: [Select]
.footer {
        font-size : 9px;
        padding-top: 100px !important;
}
Keep in mind that if you copied a theme to a new folder and modified that, you have to modify the link to the style sheet in the header of template.html to point to your correct style sheet (not the default one you copied it from).  I forgot this the first time too.
« Last Edit: December 04, 2005, 09:41:23 pm by Paver »
Logged

JimmyGee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Copyright padding-top
« Reply #4 on: December 11, 2005, 06:07:08 pm »

i've tried all that, !important tag included and I still get
<div class="footer" align="center" style="padding-top: 10px;">Powered by <a href="http://coppermine.sourceforge.net/" title="Coppermine Photo Gallery" rel="external">Coppermine Photo Gallery</a></div>
surely there is a way to get past this? Paver have you tried something smaller than ten like padding-top: 5px !important;  ?
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Copyright padding-top
« Reply #5 on: December 11, 2005, 08:51:52 pm »

Well I tried 100px because I could definitely see if that worked.  The source code of the inline element will be the same no matter what.  That inline element is hard-coded.  When you override that style element in style.css, it doesn't change what you see in the source code of the web page.  I just tried 5px (with !important) and it worked as well. 

Here's a handy screen ruler if you want to measure things: http://www.spadixbd.com/freetools/jruler.htm.
Logged

JimmyGee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Copyright padding-top
« Reply #6 on: December 12, 2005, 06:33:17 am »

ok I understand, thanks for your help
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.