Evenly distributed height of child elements with CSS

后端 未结 2 598
死守一世寂寞
死守一世寂寞 2020-12-05 11:11

Assume you need to present a list of colors to the user. The colors must be displayed in a list with a fixed height, with each color occupying an equal fraction of that heig

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 12:01

    Try to remove all endlines between

  • tags. For ex.

    Sometimes this was a problem, but in your situation I'm not sure that will help ;) Just give a try ;)

提交回复
热议问题