My goal was to have 5 divs nested within a parent div. Each div equally wide, and side-by-side.
This is my HTML:
<div style="margin-left: auto; margin-right: auto; width: 80%;">
<div style="display: table-row;">
<div style="display: table-cell; text-align: center; width: 20%;">Left</div>
<div style="display: table-cell; text-align: center; width: 20%;">Left</div>
<div style="display: table-cell; text-align: center; width: 20%;">Left</div>
<div style="display: table-cell; text-align: center; width: 20%;">Left</div>
<div style="display: table-cell; text-align: center; width: 20%;">Left</div>
</div>
</div>
The side-by-side feature is working, but not the widths. It's all just squeezed to the left. Any ideas why?