I want to make a search bar on the left side of my website. I made a right-side-border around my navigation div. The problem that there is this small empty area where no line is. How can I make the distance to the top side of the page to 0px?
body,
html {
margin: 0px;
}
html {
height: 100%;
}
body {
padding-left: 10px;
min-height: 100%;
font-family: Arial, Helvetica, sans-serif;
background-color: #36e7ff;
}
nav {
width: 10%;
padding-top: 0px;
padding-bottom: 100%;
border-right: 3px solid white;
float: left;
margin-right: 2%;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="navigation.css">
<title>Home</title>
</head>
<body contenteditable="false">
<nav>
</nav>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>´
</body>
</html>
I also tried: top: 0px, margin-top: 0px...
I want this:
Instead of this: