...

View Full Version : Link appears glued to top left regardless of margins/positioning



harvs899
11-08-2012, 09:21 PM
Pretty simple question but I can't seem to work it out, basically whatever I change I can't seem to get it to move from the top left

Here's my relevant code;


logo{
width: 289px;
height: 108px;
margin-left: 400px;
}
.mainheader{
background: #AAA;
border-bottom: 2px solid #9A9A9A;
}


<header class="mainheader">
<a href="/"><img src="Images/Logo2.png" id="logo"/></a>
<nav class="navbar">
<ul id="unorderedlist">
<li>
<a href="Home.html">Home</a>
</li>
<li>
<a href="Home.html">About</a>
</li>
<li>
<a href="Home.html">Services</a>
</li>
<li>
<a href="Home.html">Experience</a>
</li>
<li>
<a href="Home.html">Testimonials</a>
</li>
<li>
<a href="Home.html">Contact</a>
</li>
</ul>
</nav>
</header>

The left 400px takes no affect and neither does whatever else I put there, what do I do?

Many thanks in advance

Iso Godly
11-08-2012, 09:24 PM
Did you try to give the main header a width and height?

harvs899
11-08-2012, 09:25 PM
Yes, no cigar

tracknut
11-08-2012, 09:53 PM
logo{


should be



#logo{


Dave



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum