Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    158
    Thanks
    21
    Thanked 0 Times in 0 Posts

    Centering navigation at top of page?

    How can I center my 3 menu tabs at the top so they are centered on the page?

    Replacement Cushions for Restoration Hardware

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,736
    Thanks
    0
    Thanked 241 Times in 236 Posts
    Hi there taymag,

    try it like this...
    Code:
    
    .menu  {
        position:relative;
        right:50%;
        float:right;
     }
    .menu li {
        position:relative;
        left:50%;
        float:left;
     }
    coothead

  • Users who have thanked coothead for this post:

    taymag (09-05-2014)


  •  

    Posting Permissions

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