mike12255 Posted June 15, 2011 Share Posted June 15, 2011 Hello i made a class and im trying to assign an image I got to the first td however Its not working, below is my code I hope somone can spot my error. CSS: #news_display{ Padding:2px; font-size:13px; color:white; } #news_display td.news { background: url('../images/table_top.gif'); width:200px; padding:2px; color:white; } Html: <div id="news_display"> <table> <tr><td class="news"> Latest Threads </td> </tr> <tr> <td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr> <tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr> <tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr> <tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr> </table> </div> <!-- End Of News Display --> Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted June 15, 2011 Share Posted June 15, 2011 Apart from padding spelled with a Capital It all looks pretty valid. So i think it's just a path to image issue. maybe try: #news_display td.news { background: url(images/table_top.gif); width:200px; padding:2px; color:white; } If you have this online somewhere I can have a look P.s. Note though unless you have no other background color, you will never see the white colored text 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.