Reputation: 22257
I'm unable to get this working in IE, the second child doesn't remain in the same line.
HTML:
<div class="outer">
<div class="inner">left</div>
<div class="inner">right</div>
</div>
CSS:
.outer
{
width: 100%;
}
.inner
{
float: left;
width: 50%;
}
Upvotes: 0
Views: 3020
Reputation: 324
if you have a set width in px, 50% works correctly.
CSS:
.outer{
width: 900px;
}
.inner{
width: 50%
}
Upvotes: 0
Reputation: 10572
Change your width's to 49% (or one to 50% and the other to 49%).
Upvotes: 3