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: What does it take to add a background image to a table?  (Read 3194 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
What does it take to add a background image to a table?
« on: January 02, 2005, 03:35:00 am »

I have been trying for past 1 hour and it doesn't work. However same code works on non CPG page? I am bit confused here:

.tableh1 {
       border: 1px solid #BEBEBE;
       background-image: url(i/top3bg.jpg);
   color : #FFFFFF;
   padding-top: 4px;
   padding-right: 3px;
   padding-bottom: 4px;
   padding-left: 3px;

And

.tableh3 {
    border: 1px solid #BEBEBE;
   background : url(i/bg.jpg);
   color : #FFF788;
   padding-top: 2px;
   padding-right: 3px;
   padding-bottom: 2px;
   padding-left: 3px;

What am I doing wrong?

Link to the gallery:

http://www.defencetalk.com/pictures
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: What does it take to add a background image to a table?
« Reply #1 on: January 02, 2005, 03:47:43 am »

i always use the : background-image:url(i/whatever.gif) syntax.

One thing that you have to remember is that the location you give is relative to the CSS file, not the html file that references it.

so if you had /index.php link to  themes/mytheme/style.css then the example above would be looking for file: themes/mytheme/i/whatever.gif not /i/whatever.gif


Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.