li ul li is too long, line wraps but no indention

前端 未结 4 1759
野趣味
野趣味 2020-12-09 10:17

I\'ve an unordered HTML list (ul). If the second word is too long the line wraps automatically but the overflowing text isn\'t indented. Any ideas how to solve

4条回答
  •  情歌与酒
    2020-12-09 10:31

    add this CSS:

    ul {
        list-style-position: outside;
    }
    

    Example here: http://jsbin.com/emeda/

提交回复
热议问题