HTML noob here.
Given the following html and css files, can someone tell me why my header does not hug the left and top edge of the viewport?
In other words, why is there white space above the grey box, and to its left, even though margin and border are set to 0?
.html file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="css/site.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrap" >
<div id="headerbar">
<p>Header</p>
</div>
</div>
</body>
</html>
.css file:
p {
font-family:verdana;
font-style: bold;
font-weight: 300;
font-size: 3em;
}
#headerbar {
width:3000px;
margin:0px;
border:0px;
padding:30px;
background: grey;
font-size: 1em;
}