Using 'table values' with non-table elements display-property

J

Jam Pa

Is it good CSS practice to use 'table layout values' such as 'inline-
table' with a non-table elements 'display' property?

For example (css follows)

p {
display: inline-table;
}

/** or maybe */

div {
display: table;
}

(end)

After all, neither p or div tags are table. It does seem to work with IE
and firefox somewhat well.

Anyone have any comments?
 
S

Spartanicus

Jam Pa said:
Is it good CSS practice to use 'table layout values' such as 'inline-
table' with a non-table elements 'display' property?

Not a problem.
After all, neither p or div tags are table.

Irrelevant, css does not affect semantics and/or structure.
It does seem to work with IE
and firefox somewhat well.

You must have been dreaming, IE does not support any of the css table
values, Mozilla does not support inline-table.
 
T

Toby Inkster

Jam said:
Is it good CSS practice to use 'table layout values' such as 'inline-
table' with a non-table elements 'display' property?

Sure, but it will only have any effect in Opera 7+ (or perhaps 6+? maybe
even 5+?)
 
S

Spartanicus

Toby Inkster said:
Sure, but it will only have any effect in Opera 7+ (or perhaps 6+? maybe
even 5+?)

Opera has supported inline-table since v5

KHTML browsers also support inline-table IIRC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top