styling a UL

Discussion in 'CSS' started by billybrag, Jan 16, 2007.

  1. #1
    hello all,

    I am writing a new version of one of my sites and am really stuck.

    part of it is a directory, and i have managed to get my coldfusion to spit out a nested UL but im completely lost in the best way to style it.

    what i have is here.. www.weblinker.co.uk - you can see the links on the main section.

    what i would like is to have any sub categories displayed below the main, as demonstrated in this site http://www.scotlanddirectory.co.uk - though this is table based.

    does anyone think they can help? thanks alot

    Mike
     
    billybrag, Jan 16, 2007 IP
  2. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Try;
    .mainDirectory ul ul li{float:none;display:inline}
    Code (markup):
    And separate with spaces/commas between in html, so it doesn't look like it's one big link.
     
    AdamSee, Jan 17, 2007 IP