Speedding Speedding - 1 year ago 79
CSS Question

HTML/CSS align multiple elements within div

I wonder how to align three elements in one div. Basically, it should look like this
enter image description here


For future readers, the solution for my problem looks like this

<div style="text-align: center;">
<span style="float: left;">LEFT</span>
<span style="margin: auto;">CENTER</span>
<span style="float: right;">RIGHT</span>

Answer Source

Try using float:left and float:right for left and right see this fiddle:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download