Jump to content

Is Cross-Browser support for display: table; possible?


Goldeneye

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.