Goldeneye Posted May 18, 2008 Share Posted May 18, 2008 Is there a DOCTYPE which would allow display: table; properly in most (if not all) of the major browsers? Or is there any to make display: table; cross-browser-consistant at all? I'm not new to CSS/HTML, I'm just far behind on the whole Web Standards thing. You're probably wondering, "Why not just use tables for displaying tabular data?" Well I am using <table> right now, but I want to make it with DIVs for more possibility with creating different stylesheets. A preemptive thanks to any answers. Quote Link to comment https://forums.phpfreaks.com/topic/106228-is-cross-browser-support-for-display-table-possible/ Share on other sites More sharing options...
AndyB Posted May 18, 2008 Share Posted May 18, 2008 You're probably wondering, "Why not just use tables for displaying tabular data?" Well I am using <table> right now, but I want to make it with DIVs for more possibility with creating different stylesheets. A thoroughly bad idea. Using the <table> element to display tabular data is precisely the correct way to use it and obviously semantically correct since that's exactly its purpose. Using "divs" to display tabular data is almost as bad a practice as using tables to lay out pages. Before you decide that tables can't easily be styled well, check -> http://icant.co.uk/csstablegallery/index.php Quote Link to comment https://forums.phpfreaks.com/topic/106228-is-cross-browser-support-for-display-table-possible/#findComment-544479 Share on other sites More sharing options...
Goldeneye Posted May 18, 2008 Author Share Posted May 18, 2008 Well it's not that I can't style them. They're easy enough to style. It's just that if I want a different format of how the data is displayed, then I have to insert DIVs and treat them as containers. I should probably mention that this is aimed towards Forum Stylesheets. Quote Link to comment https://forums.phpfreaks.com/topic/106228-is-cross-browser-support-for-display-table-possible/#findComment-544492 Share on other sites More sharing options...
AndyB Posted May 18, 2008 Share Posted May 18, 2008 Huh? Tabular data is tabular data. A table is the html element designed for tabular data - regardless of the purpose for displaying it. It's not clear to me quite what problem you're trying to work around. Quote Link to comment https://forums.phpfreaks.com/topic/106228-is-cross-browser-support-for-display-table-possible/#findComment-544494 Share on other sites More sharing options...
Goldeneye Posted May 18, 2008 Author Share Posted May 18, 2008 Ahhh nevermind then, I'll let it rest. It's trivial anyway. Quote Link to comment https://forums.phpfreaks.com/topic/106228-is-cross-browser-support-for-display-table-possible/#findComment-544506 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.