CssRegistrationRegisterCssBlock Method |
Adds a style block containing specified CSS rules to the page's header. If registering the same block multiple times then a given block is registered only once.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax public static void RegisterCssBlock(
Page page,
string key,
string style
)
Parameters
- page
- Type: System.Web.UIPage
The page that is registering the CSS style block - key
- Type: SystemString
Unique key of the style block - style
- Type: SystemString
Style declaration that contains CSS rules
See Also