Pls see the code:
http://jsfiddle.net/hrhktkbzyy/0kwnL8k8/
<div>
<div class="container divinline">
<div class="row1 ">ROW ONE</div>
<div class="row2">ROW TWO</div>
</div>
CSS
.divinline{
display:inline-block;
}
.container{
line-height:60px;
height:60px;
background:#ffee12;
width:50%;
text-align:left;
}
.row1{
background:#450011;
font-size:12px;
height:50%;
line-height:50%;
}
.row2{
background:#333333;
font-size:12px;
height:50%;
line-height:50%;
color:#FFF;
}
I don't know why the text in row1 and row2 overlapped the border of the two divs. I want to vertical-align them to the bottom. Anybody know the reason?
Many thanx.
` instead of what you have and give the `[class of ul] li` a `line-height`
– JGallardo Sep 15 '14 at 18:00