Do you know HTML? If not, follow a HTML tutorial at w3schools.com.
Do you know what HTML output the JSF components generate? If not, read the TLD documentation along with the JSF implementation/library in question.
Do you know how to style and position HTML using CSS? If not, follow a CSS tutorial at w3schools.com.
Do you know how to use the 'style' and 'styleClass' attributes of the JSF HTML components? If not, follow a basic JSF book/tutorial.
At end,
you should be able to do "the math" yourself.