How to lay-out list items like a grid with CSS and HTML?

前端 未结 3 1951
走了就别回头了
走了就别回头了 2021-02-07 18:56

I have a div block which does not have a fixed width.

Inside, I have an

  • ..
  • block with 11 items. I would like these
3条回答
  •  梦谈多话
    2021-02-07 19:19

    According to this StackOverflow question, Inline Blocks may be just what you need.

    Oh, and if you aren't implementing it already, be sure to look into CSS Grids, too. If you don't want to build a CSS grid yourself, this one is fantastic.

提交回复
热议问题