SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Location
    Rudgwick, UK
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Left padding doing my head in...

    Hi,

    I'm trying to figure out where the extra left padding is coming from on this design:

    http://designerstaticfiles.com.nmsrv.com/bfc_design/

    The menu part (2nd block) seems to have a 10-15px padding setup on it, which is stopping it from centering properly in its block.

    Can anyone shed some light? Been trying to find out where its coming from for the last 30 mins, and still no closer

    TIA

    Andy

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,588
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Try this:

    Code:
    #menu ul.dropdown {
        margin: 10px auto 0;
        overflow: hidden;
        padding: 0;
        position: relative;
        width: 850px;
    }
    A lot of elements have default margin and padding, so you need to state values for those explicitly to override those browser defaults.

  3. #3
    SitePoint Addict
    Join Date
    Sep 2008
    Location
    Rudgwick, UK
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that worked like a charm

    Cheers

    Andy


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
  •