I've come across numerous resources on this topic that have already been answered, but none of them have provided a satisfactory solution.
Here's the scenario:
I have created a basic fiddle showcasing the desired behavior:
If I have 3 cells, I want spacing only between each div. Is it possible to achieve this using just CSS?
[HTML]
<div class="cel-1-2">
Max Size of Objects in Cache (Shared Memory)
<div class="cel-1-2">
<input type="text" placeholder="foo" />
</div>
<div class="cel-1-2">
<select>
<option value="foo">bar</option>
</select>
</div>
</div>
<div class="cel-1-2">
foobar
</div>
[CSS]
[class*=cel-] {
padding-right:10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background: blue;
}
.cel-1-2 {
width: 50%;
float: left;
}
input, select {
width: 100%;
float: left;
}
To clarify further: