XHTML and CSS Tutorial - 29 - div

<!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">
Div {border:2px solid red;
Position:absolute;
Width:300px;
Top:40px;
Left:35px;}

</style>

</head>

<body>
<div>My name is Thileban</div>

</body>

</html>

Comments