I want to make an horizontal bar with a list and research bar, both separated by a margin (I just don't want them to next to each other). I want all the bar to be of a color (in my example it is blue but I don't care it is just to try). However, when I try to put a margin or padding the color vanishes. I m pretty sure it is not the right way to do it. If someone could also tell me how to get rid of the small white layer above the bar that d be great. I want the color to start at the very top of the page.
Thank you for you help (I know I m bad at coding).
Here is the code:
<html>
<head>
<style>
#bar {
background-color: blue;
}
#menu ul li {
display: inline;
float: left;
}
#form {
padding-left: 30px;
}
</style>
</head>
<body>
<div id="bar">
<div id="menu">
<ul>
<li id="current"><a href="index.html">Home</a>
</li>
<li><a href="index.html">Archives</a>
</li>
<li><a href="index.html">Profile</a>
</li>
<li><a href="index.html">Followers</a>
</li>
<li><a href="index.html">Support</a>
</li>
</ul>
</div>
<div id="form">
<form method="get" action="http://www.google.com/custom">
<input name="q" size="25" maxlength="255" value="" type="text" />
<input name="sa" value="search" type="submit" />
<input name="cof" value="" type="hidden" />
</form>
</div>
</div>
</body>
</html>
