Results 1 to 1 of 1

Thread: Can ul list be both?

  1. #1
    Join Date
    Apr 2011
    Posts
    3

    Can ul list be both?

    I'm using a ul list with the li set to display: inline to get a horizontally listing menu. Nothing new. However, I also want the occasional vertical <li> item. Here's an example of my ugly code:

    Code:
    <ul>
        <li>something</li>
        <br />
        <li>something else</li>
        <br /><br />
        <li>town, state</li>
        <li>123.555.1212</li>
        <li>something else</li>
        <br /><br />
        <li>something else below</li>
    </ul>
    Using the <br /> is a kludge that works, but I can't help but feel there's a better way to mix inline with regular lists. Any suggestions?

    PS: It just occurred to me that I could use a separate "sub ul" within a regular vertical ul. Is that the best way. I come from a programming background and having everything inside ul/li seems very elegant.....
    Last edited by Olwe; 10 Sep 2011 at 03:00 PM.

Similar Threads

  1. How to list down a text file in a list/menu
    By naween in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 25 Sep 2010, 09:18 PM
  2. Problems with list <ul> sub <ul> list
    By ehart in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 08 Mar 2010, 01:52 PM
  3. membership list
    By jdog in forum Search Engine Optimization and Marketing
    Replies: 1
    Last Post: 13 Nov 2005, 02:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •