Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-08-2012, 08:21 PM   PM User | #1
harvs899
New Coder

 
Join Date: Oct 2012
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
harvs899 is an unknown quantity at this point
Link appears glued to top left regardless of margins/positioning

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;

Code:
logo{
	width: 289px;
	height: 108px;
	margin-left: 400px;
}
.mainheader{
	background: #AAA;
	border-bottom: 2px solid #9A9A9A;
}
Code:
<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
harvs899 is offline   Reply With Quote
Old 11-08-2012, 08:24 PM   PM User | #2
Iso Godly
New Coder

 
Join Date: Nov 2012
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Iso Godly is an unknown quantity at this point
Did you try to give the main header a width and height?
Iso Godly is offline   Reply With Quote
Old 11-08-2012, 08:25 PM   PM User | #3
harvs899
New Coder

 
Join Date: Oct 2012
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
harvs899 is an unknown quantity at this point
Yes, no cigar
harvs899 is offline   Reply With Quote
Old 11-08-2012, 08:53 PM   PM User | #4
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 891
Thanks: 4
Thanked 205 Times in 204 Posts
tracknut is an unknown quantity at this point
Code:
logo{
should be

Code:
#logo{
Dave
tracknut is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:31 AM.


Advertisement
Log in to turn off these ads.