Jump to content

[SOLVED] Background image in table cell


Yammyguy

Recommended Posts

Hello!

 

I'm having a hard time trying to display a background image in one of my table cells.  Dreamweaver is previewing the table with the image, but when I post to the server and preview it's not there.  yes, the image is there, and the path to the image is correct.  here is the CSS code I'm using:

 


.green {
     background-color: #f6f6f6;
     background-image:url(images/green_bg.jpg); 
     background-position: top left;
     background: no-repeat; 
     }

I'm putting the code here:

 


<td class="green">

 

As I mentioned before it is showing up in dreamweaver, but when I view the on the site, it just displays the background color.  I've also removed the background color to verify that wasn't canceling it out..

 

any help would be greatly appreciated...

Link to comment
https://forums.phpfreaks.com/topic/151165-solved-background-image-in-table-cell/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.