I have tried several different suggestions I found on Google, but I have not had any kind of consistent success. The only thing I have found that works consistently is the "!important" property, which is extremely bad practice and I want to avoid it.
My question is: how can I ensure that my style sheets take priority over PrimeFace's style sheets? I'm happy with a lot of the default styling by PrimeFaces, but when I need to do specific things for certain UI elements, my style sheets get overridden by PrimeFace's.
For example, if I have a code snippet like this:
Code: Select all
<h:commandLink styleClass="updateContentLink">...</h:commandLink>
Code: Select all
.updateContentLink {
color: #000000;
}
I want my CSS files to ALWAYS take priority over any other CSS files. The only times it should use PrimeFace's is when I don't provide styling for the elements. Does anyone know how I can do this? Thanks in advance for any help.