SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Indenting wrapping bullets

    I'm using <.li>'s in a somewhat narrow table cell and some of the bullets are wrapping. The problem is that the wrapped portion of the bullet is right under the bullet.

    Is there some way to make the wrapped portion indented so the bullet stands by itself (that works across all major browsers), i.e.

    O This is the bullet text
    ...that wraps to two lines (pretend the periods aren't there)

    Thanks!!
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Code:
    ul
    {
        list-style-position: outside;
    }

  3. #3
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but that introduces another problem. Because I'm adding a ul, that adds a margin to each bullet. If I set the margin on the ul to 0 (or anything at all for that matter), my bullets disapear in PC IE altogether.

    Any ideas as to how to get rid of the margin without affecting the bullets?
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  4. #4
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    try adding padding to the UL

    Code:
    ul
    {
        padding-left: 20px;
    }

  5. #5
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're the man. Thanks so much!
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation


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
  •