Is it possible for inline-block element to auto fill the available width?

后端 未结 4 1936
悲&欢浪女
悲&欢浪女 2021-02-07 15:13

I have a

, which contains
and
, which themselve
4条回答
  •  我在风中等你
    2021-02-07 15:44

    Ever heard of flex box model!!

    It is made just for that.

    Note in flexbox model all child elements act as flex box model you cant opt out certain things. Which mean if page has navigation and under it content div + side div. You can't make top navigation out of it. Which has implications. So solution is to have all things only that need flex box in one div.

提交回复
热议问题