Sometimes you might want to control the look and feel of your OAF pages beyond the scope of what’s provided with jDeveloper. You can do this by including a custom CSS file.

To include custom CSS, simply create your custom.css file and place this in the OA_HTML folder.

Next, in the processRequest of the page you wish to add the CSS to, add this line of code:

pageContext.putMetaTag("mainCss","<link rel=\"stylesheet\" href=\"/OA_HTML/custom.css\">");

When you run the page, the CSS file will be included in the html header.

Categorized in: