News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

What does it take to add a background image to a table?

Started by DefenceTalk.com, January 02, 2005, 03:35:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

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
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

donnoman

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