SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Unordered lists

  1. #1
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unordered lists

    Hi, I am trying to make a class for unordered lists. And I want there to be a <br> after each bullet point but I dont know how to do it. I just have this so far:

    ul {
    list-style-image: url("bullet.gif");
    white-space: normal;
    }

    Please help. Is this possible?

    So instead of my list being like this:
    item1
    item2
    item3

    I want it to be

    item1

    item2

    item3

    Thanks.


    ****************
    The Webmistress

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Code:
    ul {
    list-style-image: url("bullet.gif" );
    } 
    ul li {
      margin-bottom: 10px;
    }
    Tweak the margin to your liking

  3. #3
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, worked a treat.
    ****************
    The Webmistress


Bookmarks

Posting Permissions

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