Publishing System Settings Logout Login Register
CSS Advanced 3 Column Layout - XHTML Compliant!
TutorialCommentsThe AuthorReport Tutorial
Tutorial Avatar
Rating
Add to Favorites
Posted on October 29th, 2005
8649 views
CSS Stylesheets
Alright this is another css layout, its alot cooler than the other one and is also 3 column layout with css!

Lets get started....

Well we need a blank html sheet dont we?

well here it is:

<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"DTD/xhtml1-strict.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
<title>Your Site</title>
<meta name=\"description\" content=\"Your description!\" />
<meta name=\"keywords\" content=\"Your Keywords\" />
<meta name=\"revisit-after\" content=\"1 days\" />
<style type=\"text/css\">

</style>
</head>
<body>

</body>
</html>


If you read that code you can see the DOCTYPE is Xhtml Strict, thats because its going to be XHTML Strict :D!

It also has meta tags, wondering what they are? well ill explain that later :)

First for the CSS, All the upcoming codes that i put will be in the
<style type=\"text/css\"> </style
tags!

Css is like this:
selector{ property: value; }


A little information on using selectors...

First if you make a
<div class=\"whatever\">Whatever</div>
you must make the name like this in the css: .whatever { property: value; } and if you use
<div id=\"whatever\">Whatever</div>
you must use this code in the css: #whatever { property: value; }



We need a body CSS code....

body{
font-family: Arial,sans-serif;
color: #333333;
margin: 0px;
padding: 0px;
}


Alright, well let me tell you what that code does and how the css works...

Note: Please do not copy and paste, you learn nothing from doing that....

Well you see each of them have that syntax... the Font-Family: arial,sans-serif; is just the text you want to use on the site, if you want one that you want just add it there. the color: #333333; is just the default font color if the other css propertys do not define one... Feel free to change that too. The margin is a very important property in CSS, it can move the things around on the screen, to anywhere... the padding adds some space between things...

Next for the links, these are very important in ANY layout you make!!!!!

Note: If you are writing the css code for any links in css, it must be a:link, or a:visited, or a:hover... also a:hover MUST come behind a:link, and a:visited, if it doesnt it wont work.

a:link{
color: #006699;
text-decoration: none;
}


Alright the a:link selector value is the default color, decoration for any link on the layout... Right now it has a color of #006699, thats a light bluey color, and the property text-decoration is important if you want some things added to your links... right now its at none...

Here is a picture of what that code does to the link:

Default Link

Why did i make it like that? So it would match the rest of the layout, with these CSS codes it would be a default link color set by the internet or whatever, which is blue and red...

a:visited{
color: #006699;
text-decoration: none;
}


That is a:visited, a:visited means that if you click a link, and go back to that page, the links will changes color, but if you set it to the same color as a:link as ive done here, it wont change any colors... if you want it to, feel free to change it.

Now last code for the links! The coolest one, a:hover!

a:hover{
color: #006699;
text-decoration: underline;
}


Alright, when you put your mouse cursor over a link it can change color or remain the same, well it remains the same here, if you want change it. You notice the text-decoration has changed! It now has a underline once you hover over it!

Here is a link of what that does:

Link Hover

Well we are done with the css codes for links, but we still got a lot more code to do!

If you havent noticed yet, im just doing default decorations on the page before i get to the main stuff, i think it makes the CSS code look neater....

Now time for some Headings! We are only using 2 in this layout... For those we dont know headings make text bigger and bolder pretty much.

Heading 1 ( also known as h1)

h1{
font-family: Verdana,Arial,sans-serif;
font-size: 120%;
color: #334d55;
margin: 0px;
padding: 0px;
}


Alright as you can see, we have another font-family property, so that means it will be a different font than then the default text! Also font-size is in there, hmm WHAT COULD THIS MEAN! oh yeah it just increases the font size! and you should know what the color property does by now... Its also a darker blue color... you guys know what margin and padding does so no need to explain!

Heading 3 time (also known as h3)

h3{
font-family: Arial,sans-serif;
font-size: 100%;
color: #334d55;
margin: 0px;
padding: 0px;
}


Well this one's font doesnt change! and the font size isnt really bigger just bolder, also has a dark blue color! Feel free to CHANGE anything you want, just make sure you know what your doing!

Here is a picture of using h1 and h3 with these css codes:

H1 and H3

Why did i put that? Well you need a site title dont you? Thats what heading 1 (h1) is used for, it makes the site name stick out so you can read it easily.

Now for h3, what that is used is for mainly titles of things, like the navigation bar and stuff. it also makes it stand out and easier to read.

Headings, Check! Alright now we move on to Unordered lists (aka ul)

ul{
list-style-type: square;
}


Well that is a default Unordered list code, alright well the list-style-type means if there is a unordered list in the layout it will have a square next to the text.

Here is a picture of using that default code:

Default UL

Alright we are done with the default decoration pretty much, now we move onto the CSS code that will structure the layout.



This should be your CSS code if you followed the tutorial exactly.

body{
font-family: Arial,sans-serif;
color: #333333;
margin: 0px;
padding: 0px;
}

a:link{
color: #006699;
text-decoration: none;
}

a:visited{
color: #006699;
text-decoration: none;
}

a:hover{
color: #006699;
text-decoration: underline;
}

h1{
font-family: Verdana,Arial,sans-serif;
font-size: 120%;
color: #334d55;
margin: 0px;
padding: 0px;
}

h3{
font-family: Arial,sans-serif;
font-size: 100%;
color: #334d55;
margin: 0px;
padding: 0px;
}

ul{
list-style-type: square;
}


If your wondering when we are gonna add content and stuff just wait... im saving that for last.

First the container thing that will control the layout this is also where you can get confused!....


#container{
padding: 10px 0px 0px 0px;
width: 100%;
border-bottom: 1px solid #cccccc;
border-top: 1px solid #cccccc;
}


The padding there has alot of values! well instead of writing them out, i did them in one declaration. Alright from left to right on the padding values: top right bottom left. Alright you see width has a percent value, well if you use percents its tougher, but if your looking for a full screen layout which we are going for its way easier! and the 100% means it extends to the edge of your screen on ANY resolution! Oooo! looky borders! well it has a border for the top and bottom, and its 1 pixel in height and has a color of #cccccc which is a medium grey. Feel free to change stuff

Now for the Navigation css code!


#navigation{
float: left;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
width: 20%;
margin: 0px;
padding: 0px;
}


Well first off, we have a float: left; many people seem to get confused and have errors with these!! which is bad! well what it does it is moves the thing to the left, the only values for floats is left and right. and then it has a border for right and the bottom! its one pixel in height and a color of medium grey, alright im going to stop explaining the borders since you should know them by now :)! Also has a width of 20%, which is about 1-2 inches or so, well its pretty big...

Time for headlines! Thats right we have headlines! this will be located on the right!


#headlines{
float: right;
width: 20%;
padding-right: 20px;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
}


HEY! looky what we have here! float: right;!!! Well since we have that it moves it to the right! and a padding-right property of a value of 20 pixels, that just moves the text to the left a bit.... and has some borders.

Time for the content section


#content{
float: left;
width: 55%;
}


Another float! coolio! well its floats it to the left, well it doesnt really move it to the left mainly keeps it in the middle since there is another float: left; and it has a width of 55% which is pretty big since its for content :)!

Alright the footer code thats coming up is our final design touch pretty much... after that we start doing more advanced decorations on our layout.


#footer{
clear: both;
border-top: 1px solid #cccccc;
font-size: 75%;
color: #cccccc;
margin-top: 5px;
padding: 10px 10px 10px 10px;
}


First, clear: both; most imporant property and value if you use floats, this makes the floats not screw up in the final design, its a little hack pretty much. if you EVER use floats add that at the footer css code or something. alright the it has a border on top of it, font size of 75%, bit smaller than normal, and the default text is greyish, also the margin-top: 5px; just pushes the thing down a little bit away from the other stuff. and has alot of padding, just makes it look cooler.

If you think your near done with css think again, we got over 15 more :), told you it was big :)!



Current CSS Code:


body{
font-family: Arial,sans-serif;
color: #333333;
margin: 0px;
padding: 0px;
}

a:link{
color: #006699;
text-decoration: none;
}

a:visited{
color: #006699;
text-decoration: none;
}

a:hover{
color: #006699;
text-decoration: underline;
}

h1{
font-family: Verdana,Arial,sans-serif;
font-size: 120%;
color: #334d55;
margin: 0px;
padding: 0px;
}

h3{
font-family: Arial,sans-serif;
font-size: 100%;
color: #334d55;
margin: 0px;
padding: 0px;
}

ul{
list-style-type: square;
}

#container{
padding: 10px 0px 0px 0px;
width: 100%;
border-bottom: 1px solid #cccccc;
border-top: 1px solid #cccccc;
}

#navigation{
float: left;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
width: 20%;
margin: 0px;
padding: 0px;
}

#headlines{
float: right;
width: 20%;
padding-right: 20px;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
}

#content{
float: left;
width: 55%;
}

#footer{
clear: both;
border-top: 1px solid #cccccc;
font-size: 75%;
color: #cccccc;
margin-top: 5px;
padding: 10px 10px 10px 10px;
}


Time to start adding some more decorations and other things...

Site name css code:


#sitename{
margin: 0;
padding: 0 0 10px 10px;
border-bottom: 1px solid #cccccc;
}


alright well we have a some margin which is 0 so dont worry about it, and padding... it just moves it down and to the left.... and a border of grey...

Next im going to give you 2 css codes...

#welcome{
padding: 0px 0px 10px 10px;
font-size: 80%;
}

#welcome h3{
padding: 30px 0px 5px 0px;
text-align: left;
}


Thats the welcome part, the first code it just makes the font size is smaller and has some padding... then for the welcome h3, well thats our heading 3's that we will use for the title of it, its aligns the text to the left and has alot padding...

Time for the News part, which we will use to make news posts look better!!


#news{
clear: both;
padding: 10px 0px 0px 10px;
font-size: 80%;
}

#news p{
padding: 0px 0px 10px 0px;
}


Well it has another clear: both; just does the same thing as the clear: both; on the footer.... has some padding, and smaller than normal. the #news p just add's padding to the news when we add a
<p> </p>
to it.



Time for some navigation codes!


#navigation ul a:link, #navBar ul a:visited {
display: block;
}


Well you see it has a:kink and a:visited on it for unordered lists! well this is possible to have more than 2 selectors for links on one line. it just displays a little block for the unordered lists.

More navigation css codes.


#navigation ul {
list-style: none; margin: 0; padding: 0;
}

#navigation li {
border-bottom: 1px solid #eeeeee;
}

html>body #navigation li {
border-bottom: none;
}


First #navigation ul, it has a list-style of none, which has nothing infront of it. margin and padding have a value of 0 so dont worry about it.

Second the li, it has a border underneath of a grey color.

and the html>body #navigation li just fixes stuff in Internet Explorer.

We are getting close to finishing the CSS code.

Time for main navigation codes

#mainnavigation{
margin: 0px;
padding: 0px;
border-bottom: 1px solid #cccccc;
font-size: 90%;
}

#mainnavigation h3{
padding: 10px 0px 2px 10px;
}


Thats the main navigation codes for text, we still have links after this. well only thing there is to notice is the font size, kinda smaller than normal... then the main navigation h3 just adds come padding...

Time for main navigation links :)


#mainnavigation a {
display: block;
border-top: 1px solid #cccccc;
padding: 2px 0px 2px 10px;
}

#mainnavigation a:hover{
background-color: #dddddd;
}


Well for the #mainnavigation a covers a:link and a:visited so it has a border on the top and some padding...

And it has a A:Hover property, so when we hover over the link background will change!! it changes into a darker grey.



Alright now im going to cover all the latest ( latest tutorials, latest downloads ) at once...


.latest{
margin: 0px;
padding: 0px 0px 10px 10px;
font-size: 90%;
}

.latest h3{
padding: 10px 0px 2px 0px;
}

.latest a:link,
.latest a:visited {
display: block;
}


Well nothing to much to talk about really, just adds padding changes font size...

Time for our last 2 CSS CODE! B)


#headlines{
margin: 0px;
padding: 10px 0px 20px 10px;
font-size: 80%;
}

#headlines p{
padding: 5px 0px 5px 0px;
}


Just some decorations for our latest headlines.... nothing to big... padding, change in font size, the usual!

Well we finished our CSS CODE!

Final CSS code:


body{
font-family: Arial,sans-serif;
color: #333333;
margin: 0px;
padding: 0px;
}

a:link{
color: #006699;
text-decoration: none;
}

a:visited{
color: #006699;
text-decoration: none;
}

a:hover{
color: #006699;
text-decoration: underline;
}

h1{
font-family: Verdana,Arial,sans-serif;
font-size: 120%;
color: #334d55;
margin: 0px;
padding: 0px;
}

h3{
font-family: Arial,sans-serif;
font-size: 100%;
color: #334d55;
margin: 0px;
padding: 0px;
}

ul{
list-style-type: square;
}

#container{
padding: 10px 0px 0px 0px;
width: 100%;
border-bottom: 1px solid #cccccc;
border-top: 1px solid #cccccc;
}

#navigation{
float: left;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
width: 20%;
margin: 0px;
padding: 0px;
}

#headlines{
float: right;
width: 20%;
padding-right: 20px;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
}

#content{
float: left;
width: 55%;
}

#footer{
clear: both;
border-top: 1px solid #cccccc;
font-size: 75%;
color: #cccccc;
margin-top: 5px;
padding: 10px 10px 10px 10px;
}

#sitename{
margin: 0;
padding: 0 0 10px 10px;
border-bottom: 1px solid #ccc;
}

#welcome{
padding: 0px 0px 10px 10px;
font-size: 80%;
}

#welcome h3{
padding: 30px 0px 5px 0px;
text-align: left;
}

#news{
clear: both;
padding: 10px 0px 0px 10px;
font-size: 80%;
}

#news p{
padding: 0px 0px 10px 0px;
}

#navigation ul a:link, #navBar ul a:visited {
display: block;
}


#navigation ul {
list-style: none; margin: 0; padding: 0;
}

#navigation li {
border-bottom: 1px solid #EEE;
}

html>body #navigation li {
border-bottom: none;
}

#mainnavigation{
margin: 0px;
padding: 0px;
border-bottom: 1px solid #cccccc;
font-size: 90%;
}

#mainnavigation h3{
padding: 10px 0px 2px 10px;
}

#mainnavigation a {
display: block;
border-top: 1px solid #cccccc;
padding: 2px 0px 2px 10px;
}

#mainnavigation a:hover{
background-color: #dddddd;
}

.latest{
margin: 0px;
padding: 0px 0px 10px 10px;
font-size: 90%;
}

.latest h3{
padding: 10px 0px 2px 0px;
}

.latest a:link,
.latest a:visited {
display: block;
}

#headlines{
margin: 0px;
padding: 10px 0px 20px 10px;
font-size: 80%;
}

#headlines p{
padding: 5px 0px 5px 0px;
}




Time for our final part! The divs and content!

Now we start working inbetween
<body> </body>
tags.

Im going to give you all the div tags we will be using, then we will start adding into them and ill explain, well not to much explaining since there really isnt any to it...


<div id=\"container\">
<h1 id=\"sitename\"></h1>
<div id=\"navigation\">
<div id=\"mainnavigation\">

</div>
<div class=\"latest\">

</div>
<div class=\"latest\">

</div>
</div>
<div id=\"headlines\">

</div>
<div id=\"content\">
<div id=\"welcome\">

</div>
<div id=\"news\">

</div>
</div>
<div id=\"footer\">

</div>
</div>


Add that into the body tags, as you can see there are our names of our css code selectors!!

Alright now we get started into the
<h1 id=\"sitename\"> </h1>
code, well in that you can add your site name or whatever you want!

Now time for links in the main navigation!


<h3>Main Navigation</h3>
<ul>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
</ul>


Add that code into
<div id=\"mainnavigation\"> </div>


Still a bit more links :)

Add the up coming code to the first
<div class=\"latest\"> </div>



<h3> Latest Tutorial</h3>
<ul>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
</ul>


Add the upcoming code to the second
<div class=\"latest\"> </div>


<h3> Latest Downloads</h3>
<ul>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
</ul>




Time for headlines!

Add the headlines code that is coming up to:
<div id=\"headlines\"> </div>



<h3>News Headline</h3>
<p>
Headline <a href=\"#\">Click </a>
</p>
<p>
Headline <a href=\"#\">Click</a>
</p>
<p>
Headline <a href=\"#\">Click</a>
</p>
<p>
Headline <a href=\"#\">Click</a>
</p>
<p>
Headline <a href=\"#\">Click</a>
</p>
<p>
Headline <a href=\"#\">Click</a>
</p>

<p>
<a href=\"http://validator.w3.org/check?uri=referer\"><img
src=\"http://www.w3.org/Icons/valid-xhtml10\"
alt=\"Valid XHTML 1.0 Strict\" height=\"31\" width=\"88\" style=\"border:0;\" /></a>
<br /><a href=\"http://jigsaw.w3.org/css-validator/\">
<img style=\"border:0;width:88px;height:31px\"
src=\"http://jigsaw.w3.org/css-validator/images/vcss\"
alt=\"Valid CSS!\" />
<br /><a href=\"http://www.pixel2life.com/twodded/\">
<img src=\"http://www.pixel2life.com/twodded/twodded_88x31.gif\" alt=\"Twodded Quality Tutorials\" style=\"border:0;\" /></a>
</a></p>


Alright we got the links and headlines done... time for the content and footer!

First we are going to work on the content.... this will include the Welcome and Real Content! Add the content code coming up in:
<div id=\"content\"> </div>


<div id=\"welcome\">
<h3>Welcome!</h3>
<p>Welcome to whatever, we have whatever and whatever!</p>
</div>
<div id=\"news\">
<h3>News Title</h3>
<p>
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content.
</p>
<p>
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content.
</p>


Well Content done now!



Time for our final thing the footer!

Add the upcoming code into
<div id=\"footer\"> </div>


<a href=\"#\">About Us</a> | <a href=\"#\">Site
Map</a> | <a href=\"#\">Contact Us</a> | &copy; 2005 Your site


Well you see it has a
&copy;
well thats a HTML Entiny that shows a copyright symbol!

Well the design is done, and it is ALL XHTML Strict Validatable so far! Save it as index.html

Now time to take out the css code and add it to a seperate file....

so copy all the CSS code, DO NOT INCLUDE THE STYLE TAGS! and open notepad and paste it in there and save it where your INDEX.HTML file is as style.css!

Then add:

<link rel=\"stylesheet\" href=\"style.css\">


Alright if done correct, it should be the same....

Final design code:


<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"DTD/xhtml1-strict.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
<title>Your Site</title>
<meta name=\"description\" content=\"Your description!\" />
<meta name=\"keywords\" content=\"Your Keywords\" />
<meta name=\"revisit-after\" content=\"1 days\" />
<link rel=\"stylesheet\" href=\"style.css\">
</head>
<body>

<div id=\"container\">
<h1 id=\"sitename\">Your Site</h1>
<div id=\"navigation\">
<div id=\"mainnavigation\">
<h3>Main Navigation</h3>
<ul>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
<li><a href=\"#\">Link</a></li>
</ul>
</div>
<div class=\"latest\">
<h3> Latest Tutorial</h3>
<ul>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
<li><a href=\"#\">Tutorial Link</a></li>
</ul>
</div>
<div class=\"latest\">
<h3> Latest Downloads</h3>
<ul>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
<li><a href=\"#\">Download Link</a></li>
</ul>
</div>
</div>
<div id=\"headlines\">
<h3>News Headline</h3>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
Headline <a href=\"#\">full story...</a>
</p>
<p>
<a href=\"http://validator.w3.org/check?uri=referer\"><img
src=\"http://www.w3.org/Icons/valid-xhtml10\"
alt=\"Valid XHTML 1.0 Strict\" height=\"31\" width=\"88\" style=\"border:0;\" /></a>
<br /><a href=\"http://jigsaw.w3.org/css-validator/validator?uri=http://www.projectrage.com/twodded/style.css\">
<img style=\"border:0;width:88px;height:31px\"
src=\"http://jigsaw.w3.org/css-validator/images/vcss\"
alt=\"Valid CSS!\" /></a>
<br /><a href=\"http://www.pixel2life.com/twodded/\" title=\"Twodded Quality Tutorials\"><img src=\"http://www.pixel2life.com/twodded/twodded_88x31.gif\" alt=\"Twodded Quality Tutorials\" /></a>
</p>
</div>
<div id=\"content\">
<div id=\"welcome\">
<h3>Welcome!</h3>
<p>Welcome to whatever, we have whatever and whatever!</p>
</div>
<div id=\"news\">
<h3>News Title</h3>
<p>
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content.
</p>
<p>
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content. Content. Content. Content. Content.
Content. Content. Content. Content.
</p>
</div>
</div>
<div id=\"footer\">
<a href=\"#\">About Us</a> | <a href=\"#\">Site
Map</a> | <a href=\"#\">Contact Us</a> | &copy; 2005 Your site
</div>
</div>
</body>
</html>

Well one last thing to do, cover meta tags...

Well we have 2 we need to worry about

[CODE]<meta name=\"description\" content=\"Your description!\" />
<meta name=\"keywords\" content=\"Your Keywords\" />


Add your site description and keywords in the spots! this makes search engines pick up those meta tags and displays them when someone searches your site name in the search engine.



Alright thats all folks!

Here is the final design view: Click Here

Hope everyone likes this tutorial!!! Remember be creative and change the stuff you want to change!

Added a link to twodded and xhtml, css validation links to it :)

Here is a download link for my version that is completey validatable:

Twodded Tutorial Layout
Premium Publisher
Dig this tutorial?
Thank the author by sending him a few P2L credits!

Send
d7x

My name is Chris Fogarty, Im 14 years old! I love to design and code in CSS! I play hacky sack in spare time, hang
out with friends and just mess around!
View Full Profile Add as Friend Send PM
Pixel2Life Home Advanced Search Search Tutorial Index Publish Tutorials Community Forums Web Hosting P2L On Facebook P2L On Twitter P2L Feeds Tutorial Index Publish Tutorials Community Forums Web Hosting P2L On Facebook P2L On Twitter P2L Feeds Pixel2life Homepage Submit a Tutorial Publish a Tutorial Join our Forums P2L Marketplace Advertise on P2L P2L Website Hosting Help and FAQ Topsites Link Exchange P2L RSS Feeds P2L Sitemap Contact Us Privacy Statement Legal P2L Facebook Fanpage Follow us on Twitter P2L Studios Portal P2L Website Hosting Back to Top