HTML element display in horizontal line

后端 未结 4 1238
夕颜
夕颜 2021-02-19 07:08

I have two HTML elements inside a div. I want to display them in a row or a horizontal line. Let\'s say I have two images with the code shown below. How would I make it so there

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 07:29

    The image elements are inline elements, so they display horizontally, unless you changed the "display" CSS rule. I think you don't have enough space for them to fit horizontally.

提交回复
热议问题