Chapter 3

layout1.html

<html>
<head>
<style>
#navigation {
position: absolute;
top: 10px;
left: 50%;
width: 800px;
margin-left: −400px;
text-align: left;
}

#content {
position: absolute;
top: 150px;
left: 50%;
width: 800px;
margin-left: −400px;
text-align: left;
}

body {
    text-align: center;
    min-width: 600px;
}
</style>
</head>
<body>

<div id="content">content<!-- SEO optimized content text goes here.--></div>

<div id="navigation">navigation<!-- navigational elements, ads go here--></div>

</body>
</html>

layout2.html

<html>
<head>

<style>
#navigation {
position: absolute;
top: 0px;
left: 400;
width: 200px;
margin-left: −400px;
text-align: left;
}

#content {
position: absolute;
top: 0px;
left: 600;
width: 600px;
margin-left: −400px;
text-align: left;
}

body {
    text-align: center;
    min-width: 800px;
}
</style>
</head>
<body>

<div id="content">
SEO optimized content text goes here.</div>

<div id="navigation">navigational elements, ads go here</div>

</body>
</html>

layout3.html

<html> <head> <style> #top { position: absolute; top: 10px; left: 50%; width: 800px; margin-left: −400px; text-align: left; } #left { position: absolute; top: 150px; left: 50%; width: 200px; margin-left: −400px; text-align: left; } #main { position: absolute; top: 150px; left: 50%; width: 600px; margin-left: −200px; text-align: left; } #right { position: absolute; top: 150px; left: 50%; width: 200px; margin-left: 0px; text-align: left; } body { text-align: center; min-width: 800px; } </style> </head> <body> <div id="main">optimized ...

Get SEO Warrior now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.