Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Horizontal CSS Menus

Options
  • 10-03-2008 3:47pm
    #1
    Registered Users Posts: 1,002 ✭✭✭


    Would anyone know is this possible...

    a horizontal navigation created with CSS and an unordered list with a custom border dividing the links. e.g

    link 01 :: link 02 :: link 03

    How would I create the :: between the links

    #footer ul {
    list-style-type: none;
    display: inline;
    padding-left: 0.8em;
    margin-left: 0.8em;
    border-left: ??????????
    }

    #footer ul li {
    list-style-type: none;
    display: inline;
    padding-right: 0.8em;
    margin-right: 0.8em;
    border-right: ??????????
    }


Comments

  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    There's a CSS3 border-image property, but it won't necessarily display on older browsers. Google is your best friends.

    Alternatively, though I wouldn't call it good practice, you could give the dividers a segment of the unordered list i.e.

    <ul>
    <li><a href="link.htm">Home</a></li>
    <li><img src="border_image.jpg" /></li>
    <li><a href="link2.htm">Away</a></li>
    <li><img src="border_image.jpg" /></li>
    </ul>

    etc.


  • Registered Users Posts: 1,002 ✭✭✭MargeS


    right FYI.... I found a way to do it but it requires a lot of tweaking

    put a background on the LI in the CSS
    I am trying to keep all the styling in a CSS for handy maintenance.


  • Registered Users Posts: 706 ✭✭✭DJB


    MargeS wrote: »
    right FYI.... I found a way to do it but it requires a lot of tweaking

    put a background on the LI in the CSS
    I am trying to keep all the styling in a CSS for handy maintenance.
    That's the way I'd do it


  • Registered Users Posts: 954 ✭✭✭MacAonghusa




Advertisement