HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Layout</title>
<style type="text/css">
body {
background-color:#000000; /* Sets background colour to black */
}
#header {
height:70px; /* height of the header */
}
#nav {
float:left; /* Floats the <div> to the left side of the document */
width:30%; /* Sets the width to 30% */
}
#content {
float:right; /* Floats the <div> to the right side of the document */
width:70%; /* Sets the width to 70% */
}
</style>
</head>
<body>
<div id="header">Header</div>
<div id="nav">Navigation</div>
<div id="content">Content</div>
</body>
</html>
Bookmarks