HTML List element : Sharing the parent width into equal parts

后端 未结 5 1891
無奈伤痛
無奈伤痛 2020-12-01 06:39

I have a parent

    and couple of
  1. items in that.

      &
5条回答
  •  再見小時候
    2020-12-01 07:08

    Here is a minimalistic design. It will produce responsive equal distance cells

    
    
    
    • CELL 1
    • CELL 2
    • CELL 3
    • CELL 4

    The magic is width:1%; position:relative; display:table-cell;

提交回复
热议问题