I'm trying to create a table in XHTML & CSS. The problem is that when I test it on Firefox it works but on IE it doesn't. on FF I see the table ok (1 row with 3 items on it - 2nd row only 1 item), but on IE I see the items one under the other. I've attached snapshots to demonstrate what I mean. here is the code: HTML: <div id="categoryContainer"><div class="categoryRow"> <div class="categoryCell"> <a href="university.aspx?u=118" style="text-decoration: none;"> <img src="UserFiles/110120071311398.jpg" alt="×”××•× ×™×‘×¨×¡×™×˜×” הפתוחה" /> <br /> <span style="font-size: 10px;">×”××•× ×™×‘×¨×¡×™×˜×” הפתוחה</span> </a> </div> <div class="categoryCell"> <a href="university.aspx?u=117" style="text-decoration: none;"> <img src="UserFiles/110120071311098.jpg" alt="המכללה ×œ×ž×™× ×”×œ" /> <br /> <span style="font-size: 10px;">המכללה ×œ×ž×™× ×”×œ</span> </a> </div> <div class="categoryCell"> <a href="university.aspx?u=119" style="text-decoration: none;"> <img src="UserFiles/110120071312275.jpg" alt="המכללה ×”×קדמיץ ת×-יפו" /> <br /> <span style="font-size: 10px;">המכללה ×”×קדמיץ ת"×-יפו</span> </a> </div> </div></div> </div> Code (markup): CSS: div#categoryContainer { display: table; width: 400px; text-align: center; } .categoryRow { display: table-row; } .categoryCell { display: table-cell; padding-top: 20px; } h1#pageTitle { font-size: 18px; } Code (markup):
IE does not grok {display: table*}. You're going to need to use floats, or if a table structure is called for, a table. cheers, gary
Tables are only bad when you are using them for layout. If you have tabular data, then a table's perfect for the job - after all, that's what it's there for .