SirAndy Posted December 28, 2007 Share Posted December 28, 2007 I'm trying to give html tables a background, but it will not let me validate so , i am using css.. which works greate except firefox wont display the backgrounds.. im setting the background with this css code: div.table1 { background-image: url('image.png'); } and to get the background set im doing this in the HTML code: <div class="table1"><table><tr><td>bla cell 1 row 1</td><td>bla cell 2 row 1</td></tr> <tr><td>bla cell 1 row 2</td><td>bla cell 2 row 2</td></td></table></div> which after getting all the css and html code fixed to show background images for the dif tables it validated correctly, and works in IE and Opera but not Firefox, altho if i just set the background in the the html for the table everything works, but it wont validate correctly... anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
jos. Posted December 30, 2007 Share Posted December 30, 2007 try this... <table bgcolor="transparent"</table> that might work... Jos. Quote Link to comment Share on other sites More sharing options...
SirAndy Posted January 2, 2008 Author Share Posted January 2, 2008 Ok I have figured out the problem. but I havent figured out what to do about it. table.1bar { background: url('images/title07-2.png'); height: 76px; } table.2bar { background: url('images/title07-sb.png'); height: 24px; } table.3bar { background: url('images/title07-bar.png'); height: 25px; } td.nbar { height: 100%; } table.fbar { height: 55px; } so in the html i call up this with the class atribute, but firefox doesnt want to understand it or read it, any ideas what to do? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 2, 2008 Share Posted January 2, 2008 Do NOT start a class name with a number! It will not work in Mozilla/Firefox. 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.