Horizontal list

Discussion in 'CSS' started by Krakatoa, May 16, 2006.

  1. #1
    I'm trying to make a horizontal list. This is my simple CSS:

    ul {
    color: #ffba00; }

    li {
    float: right;
    margin-left: 3em;
    display: list-item;
    list-style-type: disc; }

    and this is the HTML:

    <ul>
    <li>Menu 1</li>
    <li>Menu 2</li>
    <li>Menu 3</li>
    <li>Menu 4</li>
    </ul>

    With FF it's rendered in the right manner, but with IE there's no way to make it draw the dots before each item. :mad:
    Why??? :confused:
     
    Krakatoa, May 16, 2006 IP
  2. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #2
    why don't you try to place an image of a dot in place of writing an <ul></ul>

    I think it will be better, I used it once for www.deluxe.am and to tell you the truth I liked it better as you can have any type of a bullet you wish
     
    ludwig, May 16, 2006 IP
  3. JudyJiaStyle

    JudyJiaStyle Well-Known Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    &bull;
    Code (markup):
    This is the ASCII for a bullet, you can use that instead?
     
    JudyJiaStyle, May 16, 2006 IP
  4. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #4
    he tries to have not just a bullet but a bullet with a disc type. the option I propose is better as he can use anything instead of the bullet only
     
    ludwig, May 16, 2006 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Ludwig is right on this, except that you should keep the list structure.
    
    li {
        border: 1px solid black; /*for clarity in demo*/
        float: right;
        padding-left: 25px;
        list-style: none;
        background-image: url(bullet.gif) left middle no-repeat;
        }
    =============
    <ul>
      <li>item 4</li>
      <li>item 3</li>
      <li>item 2</li>
      <li>item 1</li>
    </ul>
    Code (markup):
    Make the image an appropriate size, not exceeding about 16px square.

    cheers

    gary
     
    kk5st, May 17, 2006 IP
  6. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #6
    thanks for extra info gary I think it'll work out for him
     
    ludwig, May 17, 2006 IP