View Full Version : Q: Can replace table tag...

07-18-2008, 06:21 PM
I am writing a web page and I want to replace the table tag with something else (i.e. ol). I want to make the ol tag to behave like the table tag. I mean:

<style type="text/css">
ol {display: table;}

07-18-2008, 09:11 PM

Why would you want to do that? if the cointent of you table is tabular data then you should use a table. if it is an ordered list then it should be <ol>. if you start to change what they mean, then how is any browser going to know how to present them?


07-18-2008, 09:52 PM
I want to use 2 different types of tables (with different styles ) and I prefer to do that without using additional attributes (id, class, style). But I think what I want to do is impossible so I am forced to use class.

Most of the browsers understand styles, so it will be no problem to predefine the tag behaviour. I just don't know what is the meaning of "display: table;" if you can not use it.

Anyway I will use the standard table tag.

07-18-2008, 10:39 PM
well I foind this to explain it but... I am none the wiser. :o