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... Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.