I use this code to right align a button.
It is not always so simple and sometimes the alignment must be defined in the container and not in the Button element itself !
For your case, the solution would be
I have taken care to specify I have also added I can say that if In this Primefaces situation, the only acceptable solution is to use With this solution, if you have 6 Buttons to align at right, you must only specify this alignment in container :-) width=100% to be sure that padding:0 to avoid before and after space as with element.float:right don't work correctly because the Button height will become higher than the footer height !
text-align:right in container.