SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    797
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Main Nav Buttons Not Working

    I am wondering if someone can tell me why my main navigation buttons are not working. They are located in the div #header inside the unordered list. I cannot even get the cursor to appear. What is going on?

    LINK-
    http://toddtemple.com
    Todd Temple > T2 Design

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,217
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Whenever you start to use big margins, like

    Code:
    #main-container {
    margin: -407px auto 0;
    }
    ... you know you are going wrong somewhere. The border here is covering your menu links:

    Code:
    #main {
    position: relative;
    width: 830px;
    margin: auto;
    border-top: 407px solid rgba(0, 0, 0, 0);
    padding: 30px 85px;
    }
    ... but really, the problem starts with the negative margin.

  3. #3
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    797
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was attempting to create a sticky footer (which works well) but it must not be right.
    Todd Temple > T2 Design

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,217
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Oh, I see. Yes, you can't have another element (like the header) outside the main container when you are doing that. Here is a reliable guide for setting up a sticky footer:

    http://www.sitepoint.com/forums/show...66#post1239966

  5. #5
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    797
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick question: if I follow Paul's article, and contain all divs except for the footer-container inside an outer div, can that outer div have elements that are positioned absolutely?
    Todd Temple > T2 Design

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,217
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Should be able to, I would think.


Tags for this Thread

Bookmarks

Posting Permissions

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