SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,665
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    trying to align div

    I cant figure out where the extra space to the left of the menu,
    http://www.meadowlarkpreschool.com/wordpress/
    came from, as Im trying to align the menu with the white page below it.

    Thanks...
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,599
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    There seems to be some undesired margin being applied:
    Code:
    <nav id="access" role="navigation">
        <div class="menu-header-menu-container">
    
    #access div {
        margin:0 7.6%;
    }

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,319
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by ronpat View Post
    There seems to be some undesired margin being applied:
    Code:
    #access div {
        margin:0 7.6%;
    }
    Yes, that's the main reason. Each link also has some left/right padding on it, which will mean the first link won't line up exactly, unless you pull the menu left with a negative margin. It's a bit hit and miss, though, as the padding is set in ems.

  4. #4
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,665
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    thanks
    "Oh, and Jenkins--apparently your mother died this morning."


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
  •