Results 1 to 10 of 10

Thread: Center Glossy Horizontal Menu

  1. #1
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Center Glossy Horizontal Menu

    Hi there and thanx for EXCELLENT tools.

    I have a <div> container and then a div for my menu.

    How can I center my menubar? At the moment it looks like it is right aligned.

    Thank you so long for your help.

    Regards,
    Deon

  2. #2
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    without seeing an example it's hard to give an accurate solution... it would be best if you could post a link to an example page so we could get an idea of what needs to be done.

    Without seeing any code or example pages, the best advice I could give would be to use...

    Code:
    <style type="text/css">
    #this_is_your_menu {
    position:relative;
    margin:0 auto;
    }
    </style>
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  3. #3
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi there.

    Here is the page:

    www.rmkgen-sets.co.za

    Thank you.
    Deon

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    the menu is centered from what i can see...
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  5. #5
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi again and thanx for the reply.

    What I mean with "center" is that the space to the left of "Home" is the same as to the right of "References". How do I accomplish that?

    Thanx,
    Deon

  6. #6
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    oh, ok...

    try this:

    Code:
    <style type="text/css">
    ul.glossymenu{
    text-align:center !important;
    }
    </style>
    put that in the <head> of your page between <head> and </head>


    EDIT FOLLOWS:


    on second thought, that may not work...

    you might try this:
    Code:
    <style type="text/css">
    div#menubar{
    text-align:center !important;
    }
    </style>
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  7. #7
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, but that even did not help. I have also gone so far to put a table in the menubar <div> and centre it; no success.

    Is it not practise to have what I need?

    Thanx for your trouble.
    Deon

  8. #8
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    in "menu.css" replace this section

    Code:
    .glossymenu {
    background:transparent url(../graphics/menu//menur_bg.gif) repeat-x scroll 0 0;
    height:46px;
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    margin:0 auto;
    padding:0 0 0 55px;
    position:relative;

    and also

    Code:
    .glossymenu li a {
    color:#000000;
    cursor:pointer;
    display:block;
    float:left;
    font-family:sans-serif;
    font-size:13px;
    font-weight:bold;
    height:46px;
    line-height:46px;
    padding:0 0 0 18px;
    text-align:center;
    text-decoration:none;
    }
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  9. #9
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Thank you VERY VERY much.

    It did the trick. Thanx again for your time & patience.

    Thanx again.
    Deon

  10. #10
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    you're welcome
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

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
  •