2
아래 레이아웃에서 div1
과 div2
을 같은 행에 입력하고 다음 행 (div1
미만)으로 div3
을 옮기고 싶습니다. 미리 감사드립니다.div를 다음 행으로 강제 할 수있는 방법
<html>
<body>
<div style="width:50%;">
<div id="div1" style="float:left;
background-color:red;
vertical-align: bottom;">
<label> This is my label</label><br>
<input type ="text">
</div>
<div id="div2" style="padding-left:10px;
padding-right:0px;
float:left;
background-color:green;
vertical-align: bottom;">
<label> </label><br>
<button id="btn" >My button</button>
</div>
<div id="div3" style="background-color:yellow;">This is error</div>
</div>
</body>
감사합니다 @ 피터. 완벽하게 일했습니다. – Rocky