well to do a this tutorial first of all you need a web hosting or run a server on you own computer would work as well (for test purposes a geocities site would work fine
start with the basic html structureas you already know that is a simple html page now the <link rel="stylesheet" href="yourcss.css" type="text/css"> tag tells the html document to use the stylesheet yourcss.cssCode:<html>
<head><link rel="stylesheet" href="yourcss.css" type="text/css"><title>title of page</title></head><body>body goes here </body></html>
now in the body you put 3 div tags like sonow that is all you have to have in your html document for the tutorial to workCode:<body><div class="leftcol">left column goes here</div>
<div class="content">main content goes here</div><div class="rightcol">right column goes here</div>
now in the css document the important new feature for this tutorial is absolute positioningok first what you do is you state what you are setting in the first example is a division so you put div then add a dot then whatever you set the class for that division in the html document so it might be a good idea to try and have both pages open when you are doing thisCode:div.content {
*width: 60%;
*margin: 0 20%;
* * * * * * * *top: 50px;
*font: 11px/16px verdana, arial, sans-serif;
*text-align: center;
* * * * * * * *border: 2px solid *#E07000;
* * * * * * * *
}
div.leftcol {
*position: absolute;
*top: 148px;
*left: 5px;
*width: 18%;
* * * * * * * * float: left;
*font: 11px/16px verdana, arial, sans-serif;
* * * * * * * *border: 2px solid *#E07000;
* * * * * * * *
}
div.rightcol {
* * * * position: absolute;
*top: 148px;
*right: 5px;
*width: 18%;
*float: right;
*font: 11px/16px verdana, arial, sans-serif;
* * * * * * * *border: 2px solid *#E07000;
}
next add { like you do for normal css then add position: absolute; which tells the browser that you are going to set an position that can't be changed
there are 3 main values for a absolute positioning (or at least for this tutorial )
you have the top atribute which tells the browser how many pixels you want the division to be from the top of the window
then the right or left atribute which tells the browser how far the division should be from the right or the left depending on which one you chose
then you have the width attribute which tells how much of the screen should be used by a division notice that my width values do not add up to 100% this is becuase you need that little space inbetween your divisions so it doesn't look crowded.
well that is all for the tutorial in my site i use php includes to link the blogging software to the webpage you can view this tutorial at http://ultimategaming.info/personal.php
PS: this tutorial will only display right on mozilla rendering browsers for some reason IE does not like absolute poistioning so if it looks weird try it with firefox at www.getfirefox.com