my code is as follows:
html
<div class="wrapper">
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
</div>
css
.wrapper > div {
display: inline-block;
}
.wrapper .first {
width: 33.3%;
}
.wrapper .second {
width: 33.3%;
}
.wrapper .third {
width: 33.3%;
}
I use the above code, but it end up breaking into two line. I wonder what's wrong with it?
I know i can use float to do this. but the above code is haulting me for a long time . and hope someone can tell me the reason,thanks in advance.