I've been trying to create a website but the div tags aren't seeming to go as planned. For the banner div, logo div and main navigation system div, they are perfectly in line where I want them, but when I try to position the subnavbar and the search bar, they go in a weird position? I can't see what I've done wrong with my code, it all seems okay.
Basically for the subnav bar I want it underneath the logo div, and then for the search div, I want this slightly under the main navigation system.
The code is below to make things easier, Thanks in advance!
I believe here is the code I am having problems with:
html
<div id="SubNavBar">
<a id="LaptopsOver" href="#" class="left" > </a>
<a id="NetbooksOver" href="#" class="left" ></a>
<a id="TabletsOver" href="#" class="left" ></a>
<a id="eRaaderOver" href="#" class="left" ></a>
</div>
css
#SubNavBar {
border: 3px solid #000;
margin-right: auto;
margin-left: auto;
height: 209px;
width: 100px;
left: auto;
right: auto;
}
"Basically for the subnav bar I want it underneath the logo div"..Currently you have deliberately (?) centered your subnav bar, so obviously it will not be underneath your logo, which is on the left. You have set 'left: auto' and 'right: auto', which basically centers the element. Do you have a wireframe (image) of how you want your site to look like?