I am experiencing an issue with my CSS file (approval.css) that is defined as a resource and applied to my XPage. Within the css, there is a specific line of code:
.appNavBackground {background-color:#ffffd6 ;}
When I try to apply this styleClass to a div in my source code as shown below, it does not work:
<div class="row" styleClass="appNavBackground">
However, when I change the row to the following format, the style is applied correctly:
<div class="row" style="background-color:#ffffd6">
Additionally, if I wrap the div within an xp:panel and select the style from the css, it works fine but requires an extra panel definition that seems unnecessary.
What could I be missing from the div styleClass definition?