How to display two elements on the same line?

后端 未结 2 1980
醉梦人生
醉梦人生 2020-12-12 07:57

Here I want to display this slide show and the video inline. I\'ve tried thousand different examples but they couldn\'t solve my problem. Any helpful suggestion will be an i

2条回答
  •  不知归路
    2020-12-12 08:28

    Any time you want to put two elements on the same row, give their parent display: flex.

    By default, the children of a flex container line up side by side. You can then use flex properties to control their size and positioning.

    Alternatively, you can switch the display value of child elements to inline or inline-block.

提交回复
热议问题