Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2012
    Posts
    16
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Nov 2012
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Did you try to give the main header a width and height?

  • #3
    New Coder
    Join Date
    Oct 2012
    Posts
    16
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Yes, no cigar

  • #4
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,226
    Thanks
    10
    Thanked 269 Times in 268 Posts
    Code:
    logo{
    should be

    Code:
    #logo{
    Dave


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •