Hey. i got space around my website and i cant get rid of them.
My html code:
HTML Code:
<html>
<head>
<title>TryOUT</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="body">
<div id="header">lol</div>
<div id="rightnav">
<a href="contact.html">Contact<a>
<br>
<a href="info.html">Info<a>
</div>
<div id="leftnav">lol</div>
<div id="footer">lol</div>
</div>
</body>
</html>
CSS
Code:
#body
{
margin:0;
padding:0;
}
#header {
position:top;
height:100px;
width:px;
background-color:#FF0000;
margin:0;
}
#leftnav{
position:left;
height:480px;
width:100px;
background-color:#000000;
margin:0;
}
#rightnav{
text-align:center;
float:right;
height:480px;
width:100px;
background-color:#000000;
margin:0;
}
#footer{
position:bottom;
height:50px;
width:px;
background-color:#FF0000;
margin:0;
}
Oh and yes, iam a complete beginner.
|