I would like to know how do i centrilize one div, with unknown width
only using CSS
.
I desire something like:
Using <center>
i have:
<div style="float: left">
<p:commandButton .../>
</div>
<center>
<p:commandButton ..."/>
<p:commandButton .../>
</center>
<div style="float: right">
<p:commandButton .../>
</div>
How do that only using css
?
Note: I don't use margin: 0 auto
just because the size of centralized div is unknown.