Align
  • elements with list-type:outside style to the content border consistently
  • 后端 未结 2 1876
    感情败类
    感情败类 2021-01-20 06:54

    I wonder if there exists an easy and solid way to style ul and li elements so that when using list-style: outside , the li elements lign up with the content above it, or wit

    2条回答
    •  孤独总比滥情好
      2021-01-20 06:56

      I suggest using something like this:

      ul {
          list-style-position: inside;
          margin:0px;
          padding:0px;
      }
      

      http://jsfiddle.net/Um5L9/4/

    提交回复
    热议问题