As a new designer, I have a question about how to make the background color extend to the top without any white space. Can someone please guide me on how to achieve this?
<!DOCTYPE html>
<html>
<head>
<style>
body{
margin: 0px;
padding: 0px;
}
#navbar{
position: relative;
background: #004f6b;
height: 100px;
color: white;
}
li{
list-style-type:none;
display:inline;
}
#navbar > ul > li#title{
position: absolute;
left: 5px;
}
#navbar > ul > li#homeicon{
position: absolute;
left: 610px;
}
#navbar > ul > li#search{
position: absolute;
right: 300px;
}
#navbar > ul > li#profile{
position: absolute;
right: 5px;
}
</style>
</head>
<body>
<div id="navbar">
<ul>
<li id="title">Title</li>
<li id="homeicon">Icon</li>
<li id="search"><input type="text" style="width:210%"/></li>
<li id="profile">Follow Us!</li>
</ul>
</div>
</body>
</html>
Screenshot : Sorry for my bad english and sorry for my bad skill... Thanks for your help...