Despite the discontinuation of the <center>
tag, it still solved this simple problem for me, but I would like to know how to solve it by using css
.
The idea is to put two buttons (or div's
) on each end, and in the middle put two buttons, as in the following image:
Usingthe<center>
tag,Ijustdidthefollowing:
<divstyle="float: left">
<p:commandButton .../>
</div>
<center>
<p:commandButton ..."/>
<p:commandButton .../>
</center>
<div style="float: right">
<p:commandButton .../>
</div>
Note: The div
that could put the two central buttons does not have a fixed size, can change dynamically, so I did not use margin: 0 auto
.
How to do this using css
?