Speedding Speedding - 17 days ago 8
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

Solved.

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>
</div>






Answer

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

https://jsfiddle.net/u924gptz/

Comments