Stretch list items
  • to fill the width of
    • 前端 未结 4 1853
      囚心锁ツ
      囚心锁ツ 2021-02-02 11:00

      I have an unordered list (

        ) with various number of items (
      • ) in it. I want to use one CSS styling that allows the items to stretch t
      4条回答
      •  借酒劲吻你
        2021-02-02 11:22

        #ul1 {
        display: block;
        padding: 0;
        list-style: none;
        }
        
        li-Class{
        width: 100%
        }
        

        Note: display can be inline-block with width:100% and this code is for those who are looking to arrange li block wise.

      提交回复
      热议问题