두 50 % 각 div하지만 어떻게 든 그것의 동일한 행에 나타나지 않는 배치하려고하지만 내가 49 % 할 경우 같은 행에 스택. 아무도 코드 (내가 솔루션보다 원인을 알기에 관심이있는)에 문제가 있음을 알려주시겠습니까?인라인 두 divs 나란히 - CSS
CSS -
* {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
}
.left-c {
width: 50%;
background: #3EF00C;
display: inline-block;
}
.right-c {
width: 50%;
background: #2E4E6E;
display: inline-block;
}
HTML -
<div class="wrapper">
<div class="left-c">
<p>LEFT ----- This is going to be some random text placed in a a left container inside the wrapper. I hope this text will suffice the requirement.</p>
</div>
<div class="right-c">
<p>This is going to be some random text placed in a a right container inside the wrapper. I hope this text will suffice the requirement. ----- RIGHT</p>
</div>
</div>
JS 바이올린 - https://jsfiddle.net/no0chhty/1/
는,이 이론은 굉장 – mika