Div Layout Tutorial 001

Here you will learn the basic coding to make a Div layout.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”> <—— This is very important, it identifies what type of html your using so it can be displayed the right way in browsers. Also it must be at the top of every page!

<html>
<head><title>TITLE HERE</title>

<link rel=”stylesheet” href=”/style.css” type=”text/css”>
</head><body>

<div id=”banner”>

<div id=”navigation”>

<h2>Header</h2>

<a href=”http:///” class=”nav”> Link </a>
<a href=”http:///” class=”nav”> Link </a>
<a href=”http:///” class=”nav”> Link </a>
<a href=”http:///” class=”nav”> Link </a>

</div>

<div id=”content”>

<h1> About This Layout </h1>

Content Here!

<b>Bold</b> | <u>Underline</u> | <i>Italics</i> | <a href=”///”>Link</a>

<textarea>
SELECT
INPUT
TEXTAREA
</textarea>

<blockquote>
“This is a blockquote. I’m expanding the way I do my layouts hope you like it!
You can use this anyway you want.”
</blockquote>

</div>

</div>
</div>
</body>
</html>

  1. Blockquote
  2. Textarea
  3. Bold
  4. Underline
  5. Italics
  6. Links
  7. Navigation
  8. Headers
Open: <div> Closed: </div>
body, html {
padding: 0px;
margin: 0px;
color: #ffffff;
font-size: 11px;
font-family: arial;
}

body {
background: #000000 url(/image_bg.jpg) top left repeat-x;
}

div#banner {
background-image: url(/image_01.jpg);
height: ##px;
margin-top: 0px;
width: ##px;
margin: 0px auto;
position: relative;
}

#content
{position: absolute;
width: ##px;
top: ##px;
left: ##px;
}

#navigation
{position: absolute;
width: ##px;
top: ##px;
left: ##px;
}

B {COLOR: #000000;}
U {COLOR: #000000;}
I {COLOR: #000000;
}

#display
{font-family: arial;
font-size: ##px;
color: #ffffff;
}

h1
{font: normal ##px arial;
color: #fff;
}

h2
{font: normal ##px arial;
color: #fff;

}

input, textarea, select
{font-family:arial;
font-size: ##pt;
}

blockquote {font : ##px arial;
color:#000000;
}

A {text-decoration:none; cursor:crosshair;}
A:link {text-decoration: none; color:#000000;}
A:visited {text-decoration: none; color:#000000;}
A:hover {text-decoration:underline; color:#000000;
}

.nav:link, .nav:visited, .nav:active
{font: ##px arial;
color: #000000;
}

.nav:hover
{font: ##px arial;
}

.