SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2000
    Posts
    740
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Formatting for bulleted list

    I have this code:

    Code:
    <ul>
        <li><a href="http://a">Dave's membership sites</a></li>
        <li><a href="http://a">Competitive Intelligence Secrets</a></li>
        <li><a href="http://a">Get it Done Now!</a></li>
    </ul>
    When I have a line of text there that wraps to the next line, the wrap starting position is at the beginning of the line, rather than the beginning of the indented text.

    How can I get the wrapped line to start aligned to the text line above it?

    Thanks,

    Jon

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    By default, lists display the way you want, so you probably have a CSS rule that changes this. Anyhow, what you need is basically this:

    Code:
    ul {list-style-position: outside}

  3. #3
    SitePoint Guru
    Join Date
    Nov 2000
    Posts
    740
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You were right. I found that it was copy and pasted text that had a bullet. So the code had no ul in it! The html I gave above was from another section. Sorted now thanks.


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
  •