Wrap a list to the right

前端 未结 3 837
执笔经年
执笔经年 2021-02-13 22:24

If i had a list like the following:

  • Alex
  • James
  • Thomas
  • Is
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 23:02

    If you would like set width for every

  • and lost order of elements, here is demo: http://jsfiddle.net/dpXz2/

    li{
        display: block;
        float: left;
        width: 75px;
    }
    
    ul{
        width: 150px;
    }
    

提交回复
热议问题