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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Location
    London, ON
    Posts
    112
    Thanks
    4
    Thanked 0 Times in 0 Posts

    CSS Hack IE6 Problem with header h1 also page links

    My site:
    Code:
    http://nickhiebert.com/test_site
    Code:
    #header h1 {
    	line-height: 13px;
    }
    Anyone know how to make it move down so it aligns right with the nav bar?

    I can't seem to figure out how to move the nav links so they are centered in the nav bar.
    Code:
    #secondary {
    	margin-left: 10px;
    }
    
    #secondary a {
    	margin-bottom: -80px;
    }

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,737
    Thanks
    22
    Thanked 1,836 Times in 1,820 Posts
    Hello nickHiebert,
    Floats are how we put things side by side. Floating your h1 should work better than using a negative margin on #nav.
    Try this -
    Code:
    html {
    	background:url(../images/background.png) scroll;
    }
    
    
    /* HEADER */
    /*----------------------------------------------------------------------------------------------------------*/
    
    #header {
    	position: relative;
    overflow: auto;
    background: #f00;
    }
    
    #header h1 {
    	padding-top: 0;
    	width: 304px;
    float: left;
    	margin-top: 18px;
    	margin-bottom: 2px; 
    	padding-bottom: 0;
    }
    
    img {
    	border-style: none;
    }
    /* NAV */
    /*----------------------------------------------------------------------------------------------------------*/
    
    #nav {
    	background:url(../images/nav_bg.png) repeat-x;
    	overflow: hidden;
    	height: 93px;
    	margin-right: 0;
    	margin-left: 0;
    	padding: 0 0 0 31px;
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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