[thelist] HTML Layout

David Dorward evolt at david.us-lot.org
Tue Dec 16 03:59:41 CST 2003


On 16 Dec 2003, at 09:56, Marcus Andersson wrote:

> I have to make a layout with either HTML4 Strict or XHTML1 Strict (I
> guess it's more or less the same rules...) and target browsers are IE6
> and later versions of Firebird.

Wrong tool, HTML is there to structure the document, not handle layout. 
Layout is the job of CSS.

> I think the layout should be done pretty easily but I haven't managed 
> to
> get it right. The spec is short:
> - One row (or box) that is 20px high and 100% wide
> - One row that fills the rest of the browser screen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Foo</title>
<style type='text/css'>
/* External <link>ed sheet preferred! */
#header { height: 20px; }
</style>
</head>
<body>
<div id='header'><!-- header --></div>
<!-- rest of the browser (well - not really, but it looks that way) -->
</body>
</html>

--
David Dorward
http://dorward.me.uk/



More information about the thelist mailing list