1
Well theoretically my question is the following, I created two Ivs in html, however when doing the second, the second div is not on the same "line" as the other but rather on the bottom. I wonder if there is any html tag that keeps the elements all in the same line, no need there is css margin-top.
Thank you.
Show your pf code.
– Nelson Teixeira
display: inline-block
?– hugomg
I don’t know if I understand it well, but it seems that you need to float:left in div, but you have to make sure that the width of the two, added together, is not greater than the total width available. <div id="larger" style="width:600px;"> <div id="less_left" style="width:290px; margin-right:10px; background-color:#f00; float:left;"></div> <div id="less_right" style="width:290px; float:left; -background color:#00f"></div> </div;>
– Vítor André
Use
<span>
instead of<div>
?– DH.