I am having this problem which I don't know how to fix. When I run the project, the CSS displays correctly on the XHTML page but as soon as I click on a link to the same page/another XHTML page, the CSS disappears.
However, I also have a JSP page in my project and when I click on the same link for the JSP page, the CSS still works perfect but doesn't if I click on a XHTML.
I can this be fix so that the CSS will always appear on all the XHTML page like the JSP page?
XHTML CSS Link
<h:outputStylesheet name="style.css" library="css"/>
JSP CSS Link
<link rel="stylesheet" type="text/css" href="resources/css/style.css">