hey folks, i m clearing my misconception abt absolute position. i had few question.
what is the use of absolute and how does it differ from relative?
i made some simple css but the div menu seems 5px; bigger to the right side. whereas i gave its width 100%. why is this happening?
Code CSS:.header{width:100%; height:200px; background:#006295;} .body{width:100%; height:800px; background:#C5EFFD;position:relative;top:-10px;} .menu{width:100%; height:50px;background:#9BE1FB; position:absolute; top:170px;}Code HTML4Strict:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="stylesheets/sandbox.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="header"></div> <div class="body"></div> <div class="menu"></div> </body> </html>







.
.


Bookmarks