Wrap tags in DIV and set the position : Div : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » Div »

 

Wrap tags in DIV and set the position


 
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Layout Techniques</title>
<style type="text/css">
#left {
    position: absolute;
    left:10px;
    top:50px;
    width:200px;
}
#center {
    margin-left: 200px;
    margin-right: 200px;
}
#right {
    position: absolute;
    right:10px;
    top:50px;
}
</style>
</head>
<body>
<div id="left">
<p>Navigate:</p>
<p><a href="">Home</a><br />
<a href="">News</a><br />
<a href="">About Us</a><br />
<a href="">Get in Touch</a></p>
</div>
<div id="center">
</div>
<div id="right">
<p>Of Interest:</p>
<ul>
<li>H/li>
<li>T</li>
<li>S</li>
</ul>
</div>
</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» Div