Results 1 to 2 of 2

Thread: trying to center this css horizontal menu

  1. #1
    Join Date
    Mar 2009
    Location
    Ramat Gan, Israel
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default trying to center this css horizontal menu

    Hi all,

    I'm new here.

    I'm trying to center this menu :

    http://www.dynamicdrive.com/style/cs...tt_black_tabs/

    i simply want it to be in the center of the page and not using the padding-left to move it.

    thanks!

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Give the list a width and change the margin to 0 auto:
    Code:
    .mattblacktabs ul {
    -x-system-font:none;
    font-family:Verdana;
    font-size:12px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:bold;
    line-height:normal;
    list-style-type:none;
    margin: 0 auto;
    padding:0 0 0 10px;
    width: 400px;
    }
    Good luck!

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    ory (03-06-2009)

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
  •