Home >Web Front-end >HTML Tutorial >The left and right layout of css div has no effect, and the right one is pushed to the bottom_html/css_WEB-ITnose

The left and right layout of css div has no effect, and the right one is pushed to the bottom_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:011983browse

In the CSS div, I first made a div background, and then wanted to put two

inside this
, which means dividing a web page in half, but a problem arises , that is: I first set the height and width of the
on the left, and placed the things, and then when I made the
on the right, it was not displayed side by side with the first
, but It is arranged at the bottom, and the right side is empty (the width of the two

s inside does not exceed the background). Please help. Can anyone tell me how to make the two
s inside appear side by side? It would be better to be more detailed. Thanks!

I added style: float:left; to the first div but it had no effect. I also added float:right; to the second
and it had the same effect!


Reply to discussion (solution)