PAGE Methods

style()

Add CSS code to page header. This function can be called from anywhere inside any template. If you place the exact same code in a content template, the code will only be added once, even if the template is shown several times on that page.

null style( string code )

Return

The function will not return any value, it just inserts the CSS code into the page's header section.

Parameter
Description
codeCSS code.

Set page style for H3 Tags

$PAGE->style('h3 {color:#3b3;}')
RETURN: ''