Second line in li starts under the bullet after CSS-reset

后端 未结 3 1482
故里飘歌
故里飘歌 2020-11-29 21:30

I\'m having some problems with my ul-list after using applying CSS-reset.

When the text in the li is long and it breaks to a second line, th

3条回答
  •  甜味超标
    2020-11-29 22:09

    Here is a good example -

    ul li{
        list-style-type: disc;
        list-style-position: inside;
        padding: 10px 0 10px 20px;
        text-indent: -1em;
    }
    

    Working Demo: http://jsfiddle.net/d9VNk/

提交回复
热议问题