margin-top: 0
, padding
and other things didn’t help to remove empty space above my header.
header {
width: 100%;
height: 60px;
background-color: black;
font-family: calibri sans-serif;
font-size: 20px;
color: white;
position: relative;
}
html,
body {
margin: 0;
padding: 0;
}
.headerlist li {
list-style: none;
float: left;
padding: 15px;
}
.headerlist li>a:link {
color: white;
text-decoration: none;
}
<body>
<header>
<ul class="headerlist">
there was some li lines
</ul>
</header>
</body>
I expected no empty space above the header but it’s there.
`’s margin](https://i.stack.imgur.com/clV6M.png). Please use your dev-tools and look at the box model.
– Sebastian Simon Jan 14 '19 at 17:48