Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Horizontal CSS Menus

  • 10-03-2008 02:47PM
    #1
    Registered Users, Registered Users 2 Posts: 1,000 ✭✭✭


    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, Registered Users 2 Posts: 1,000 ✭✭✭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, Registered Users 2 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, Registered Users 2 Posts: 954 ✭✭✭MacAonghusa




Advertisement