In this scenario, there are three main divs with a width of 100% each, and within each div, there are 3 inner divs with a width of 50%. The current layout is causing a line break after every set of 3 inner elements.
<style type="text/css">
.inner{
width: 50%;
display: inline-block;
}
.outer{
width: 100%;
}
</style>
<div class="outer">
<div class="inner"> content </div><div class="inner"> content </div><div class="inner"> content </div>
</div>
<div class="outer">
<div class="inner"> content </div><div class="inner"> content </div><div class="inner"> content </div>
</div>
<div class="outer">
<div class="inner"> content </div><div class="inner"> content </div><div class="inner"> content </div>
</div>
My goal is to have two inner elements on each row without any line breaks. I attempted using float but haven't been successful. Any suggestions on achieving this desired effect would be greatly appreciated.