Forum Moderators: not2easy

Message Too Old, No Replies

unordered list question

         

Publisher

9:38 pm on Mar 21, 2006 (gmt 0)

10+ Year Member



I want to have my bulleted items [ol]
  • so that they align on the left margin with the text above and below them. How do I do this using CSS?

    Thanks

  • Fotiman

    9:52 pm on Mar 21, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    Probably something like this:


    ul, ol
    {
    list-style: none;
    margin: 0;
    padding:0;
    }
    li
    {
    margin: 0;
    padding: 0;
    }

    That applies to both ordered lists (ol) and unordered lists (ul).

    Publisher

    10:34 pm on Mar 21, 2006 (gmt 0)

    10+ Year Member



    Thanks for the help, but when I tried this I lost the bullets.

    Fotiman

    10:40 pm on Mar 21, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    I thought that was what you were going for. Sorry. :) In that case, just remove the "list-style: none;" from the styles above, and add:

    list-style-position: inside;