Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Standard internet table border with CSS
- Paul Lautman
March 26, 2006, 10:06 pm
rate this thread
Re: Standard internet table border with CSS
There are two things to emulate:
1) The line break before & after, and shrink to fit behaviour
2) The border look
To emulate the line break before & after, and shrink to fit behaviour:
First choice is specifying display:table, but this is not supported by
Second best is display:inline-block, but only IE supports that well
enough to be usable, and it doesn't emulate the line break before and
after display model, but this can be solved with a block level wrapper.
Least best is floating (spit), but this is supported well enough cross
browser, it requires clearing afterwards.
Emulating the border look is only partially possible since browsers tend
to draw the colours of HTML table borders in a more sophisticated manner
than is the case with CSS borders.
Pragmatically probably the best cross browser code:
- » Can I make a Flash Object a live link using html instead of flash?
- — Next thread in » HTML Markup Language