SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member aidanno's Avatar
    Join Date
    Feb 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vertically centering a horizontal list

    Hey all,

    Just wondering if anybody has any idea how to vertically center a horizontal list (i.e. navigation bar) in a DIV. I'm having huge problems - it seems to center automatically in Firefox, but not in IE 6. Any ideas? Thanks in advance.

    Cheers,
    Aidan

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It all depends on how you've coded it.

    Could we see the CSS and html markup please
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Member aidanno's Avatar
    Join Date
    Feb 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm new to CSS... so please don't hate on my code, lol...

    #navbar {
    margin: 0;
    padding: 0px 0 0 30px;
    background: #C6DB31;
    border-top: 1px solid #C6DB31;
    border-bottom: 3px solid #444;
    height: 60px;
    }

    #navbar li {
    float: left;
    margin-right: 30px;
    list-style-type:none;
    display: block;
    font-size: medium;
    font-weight: bolder;
    text-transform: uppercase;
    font-family: Tahoma, Verdana, sans-serif;
    text-decoration: none;
    }


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
  •