RE: CSS vs. Tables

It worked for Opera 5.1/IE 6/NS4.77

But not NS6, which showed the <hr> right through the middle of the
/left/center/right/

If you throw a &nbsp; in there after the <br> it will render in all the above
(dunno know about older IE but trust that 5.x would work too).

Anyway, this is the code that I used....

Thanks for the pointer.... I was just about to start designing some pages that I
would like to be highly compliant and would like to avoid using tables for
formatting if possible.

(BTW: lynx shows each <div> on its own line, but at least it is visible)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html><head><title>absolute divs</title>
<style><!-- div	{ position:absolute } --></style></head>
<body>
<div style="text-align: left; width: 100%">left</div>
<div style="text-align: center; width: 100%">center</div>
<div style="text-align: right; width: 100%">right</div>
<br />&nbsp;<hr /><p>This is a test 2</p>
</body></html>

TjL

ps -- is there a better place to discuss actual HTML/CSS coding, or is this an
appropriate venue?

Received on Thursday, 12 April 2001 14:27:22 UTC