On the second example
, why does the second div
block starts from the bottom of the first inline-block
but the first example
is working as intended?
.working-left {
background-color: green;
}
.working-right {
background-color: red;
}
.left-panel {
display: inline-block;
width: 220px;
}
.right-panel {
display: inline-block;
}
First Example
<div>
<div class="left-panel working-left">
Working Left Panel
</div>
<div class="right-panel working-right">
Working Right Panel
</div>
</div>
<br><br>
Second Example
<div>
<div class="left-panel">
asd
</div>
<div class="right-panel">
Drumstick boudin fatback hamburger, ground round pig porchetta. Tenderloin short ribs pork prosciutto meatloaf, strip steak ground round. Shoulder jerky biltong, t-bone shankle tri-tip venison boudin prosciutto leberkas turkey pancetta alcatra ham hock pastrami. Tenderloin ground round rump chuck boudin meatball capicola strip steak tail corned beef prosciutto short ribs tongue jerky. Brisket shankle prosciutto meatloaf porchetta jowl biltong cupim flank sirloin beef shoulder pork chop. Landjaeger brisket jowl, cupim buffalo spare ribs swine drumstick shoulder.
</div>
</div>