Yammyguy Posted March 26, 2009 Share Posted March 26, 2009 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 More sharing options...
fry2010 Posted March 26, 2009 Share Posted March 26, 2009 try: .green { background-color: #f6f6f6; background-image:url(images/green_bg.jpg); background-position: top left; background-repeat: no-repeat; } if that doesnt work try specifying a width and height. Link to comment https://forums.phpfreaks.com/topic/151165-solved-background-image-in-table-cell/#findComment-794126 Share on other sites More sharing options...
Yammyguy Posted March 26, 2009 Author Share Posted March 26, 2009 Perfect!!! Thank you! Worked like a charm! Link to comment https://forums.phpfreaks.com/topic/151165-solved-background-image-in-table-cell/#findComment-794226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.