PAGE Methods
Including templates and objects
content(), module(), object()Request content via AJAX
collect(), complete(), elements(), element()Insert code (CSS, JS, HTML)
style(), script(), meta(), bottom(), tracking()Template data
directory(), views(), details(), preview(), charset(), language(), error()Reading and writing META data
title(), topic(), descr(), claim(), robots(), keywords()HTTP header
mime(), status(), expires(), header(), download()
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: ''