I am styling a web application that I made with Java EE (using JSF and Primefaces) and I want to override the styling Primefaces gives to the components. Is it possible to set a whole stylesheet to be preferred? Like saying the whole document to be “important”?
Share
If you can have your CSS declared after the Primefaces CSS, your CSS will take precedence.
Taken from the CSS spec:
Otherwise, no, you’ll have to mark each element as
!importantI’m afraid.