morningdew Posted June 13, 2010 Report Share Posted June 13, 2010 I found so many advises on the internet suggesting not to use HTML table as much as possible. Some of them even suggest to avoid HTML table at all costs. Is using HTML table really that bad? Do I need to totally abandon HTML table even only to create a very simple tabular data? I understand that using HTML table to create website layout could cause some problems. But for creating tabular data? Quote Link to comment Share on other sites More sharing options...
Andrea Posted June 13, 2010 Report Share Posted June 13, 2010 Tables are meant to be used to present tabular data - so that's perfectly appropriate to use them then. They just should no longer be used for layout. Pre-CSS, there wasn't much else (for layout) - but now we have CSS and positioning. Quote Link to comment Share on other sites More sharing options...
morningdew Posted June 14, 2010 Author Report Share Posted June 14, 2010 Hi Andrea, thank you so much for your reply, much appreciated. If I may seek your advise further: do you also use CSS exclusively to layout image? Suppose there are 8 images (e.g. 90 x 90 pixels) I need to arrange in 4x2 matrix. Should I use CSS or HTML table to do that? Quote Link to comment Share on other sites More sharing options...
Andrea Posted June 14, 2010 Report Share Posted June 14, 2010 It's not tabular data - so use CSS. If you float them, and you use a div wide enough to accommodate what it needs to hold - things should fall in place nicely. Quote Link to comment Share on other sites More sharing options...
administrator Posted June 14, 2010 Report Share Posted June 14, 2010 Hi, Andrea has it dead on. You can learn about css layouts on our dedicated CSS site: www.csstutorial.net Stef Quote Link to comment Share on other sites More sharing options...
morningdew Posted June 14, 2010 Author Report Share Posted June 14, 2010 Thanks a lot for your help Andrea and Stefan, much appreciated. 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.
Note: Your post will require moderator approval before it will be visible.