XHTML and CSS Tutorial - 37 - Relative Positioning

<!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>



<html>


<head>
<style type ="text/css">
#third {border:1px solid green;
position: relative;
top:60px;
left:30px;}
</style>

</head>

<body>
<p>first</p>
<p>second</p>
<p id="third">third</p>
<p>fourth</p>
 </body>


</html>

Comments