ALigning a menu to both sides of the window using CSS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • discovia

    ALigning a menu to both sides of the window using CSS

    Hi

    I have a menu that stretches to the width of the window. Several items
    align to the left, a couple align to the right. i.e.

    | Menu 1 | Menu 2 | Menu 3 | ............... ............... ...... Login
    | Help

    How do i go this using css? Thanks for any tips

  • dorayme

    #2
    Re: ALigning a menu to both sides of the window using CSS

    In article
    <1164494010.499 605.118260@h54g 2000cwb.googleg roups.com>,
    "discovia" <donal.conlon@g mail.comwrote:
    Hi
    >
    I have a menu that stretches to the width of the window. Several items
    align to the left, a couple align to the right. i.e.
    >
    | Menu 1 | Menu 2 | Menu 3 | ............... ............... ...... Login
    | Help
    >
    How do i go this using css? Thanks for any tips
    You could have 2 inline lists, one floated left - ul {float:
    left;} - another floated right. Or 2 divs ditto, with inline
    lists inside.

    Try something along this line, post a URL with your best effort
    if you cannot make it work.

    Work on this:

    <div style="float:le ft;">menu1 menu2 menu3</div>

    <div style="float:ri ght;">menu4 menu5 menu6</div>

    Will leave you to work out the spacing or markup for the menu
    items

    --
    dorayme

    Comment

    Working...