i am new to css & html and i have this problem where when i make a website there is some white space on top even if padding = 0 take a look on my html
header {
margin: 0;
padding: 0;
background: #0e83cd;
}
nav ul {
display: block;
list-style: none;
}
nav ul li {
display: inline;
}
nav ul li a {
display: inline;
}
<body>
<header>
<nav>
<ul>
<li><a href="">Num1</a></li>
<li><a href="">Num2</a></li>
</ul>
</nav>
</header>
</body>
EDIT dwreck08, Aziz Solved my problem by adding padding 0 and margin 0 to html , body THANKS
` has inherent `margin-top` and `margin-bottom` of `16px`. Remove that manually.
– TylerH Sep 17 '15 at 19:56adds extra top margin?](http://stackoverflow.com/questions/27618000/why-ul-adds-extra-top-margin)
– TylerH Sep 17 '15 at 20:00