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: Changing the Table Header Backgrounds to Images  (Read 2514 times)

0 Members and 1 Guest are viewing this topic.

lucyw1986

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Changing the Table Header Backgrounds to Images
« on: March 11, 2008, 09:36:38 pm »

Here's my gallery:

http://www.sophia-b.org/gallery

As you can see I've managed to changed the some of the table headers so that they have an image as a background, but I can't seem to do it for the album titles, as shown here:

http://www.sophia-b.org/gallery/index.php?cat=48

I've tried changing the coding to this, but it doesn't seem to work:

Code: [Select]
.tableh1 {
        background-color: #D5D5D5;
        background-image: url(images/header_bg2.jpg);
        color : #51657F;
        padding-top: 3px;
        padding-right: 3px;
        padding-bottom: 3px;
        padding-left: 3px;
        border-bottom:#75808F solid 1px;

}

.tableh1_compact {
background-color: #D5D5D5;
        background-image: url(images/header_bg2.jpg);
        color : #51657F;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
        border-bottom:#75808F solid 1px;
}

.tableh2 {
        background-color: #D3D3D3;
        background-image: url(images/header_bg3.jpg)
        color : #858585;
        padding-top: 3px;
        padding-right: 3px;
        padding-bottom: 3px;
        padding-left: 3px;
}

.tableh2_compact {
        background-color: #D3D3D3;
        background-image: url(images/header_bg3.jpg)
        color : #858585;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
}

Any help would be much appreciated
Logged

VEGA

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 323
    • maranimage
Re: Changing the Table Header Backgrounds to Images
« Reply #1 on: June 27, 2008, 03:14:55 pm »

background-image: url(images/header_bg2.jpg);




try it

background-image: url(themes/mytheme/images/header_bg2.jpg);
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Changing the Table Header Backgrounds to Images
« Reply #2 on: June 27, 2008, 04:54:09 pm »

Semicolon needed at the end of the background-image CSS lines.

Your images work fine for me when I edit your CSS using Firebug.

Steve
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 16 queries.