|
%style() Function |
|
|
%style() function is used to create CSS styles for the HTML elements. It can also be used to change the values of the styles set by the Application Studio. Syntax: %style([html-tag-specifier!]style-name, expression)
Examples: %style(background-color,'green') creates CSS style background-color for the current element. If style was already created by the Application Studio it will be replaced. %style(font-family,'Verdana') creates CSS style font-family for the current element. If style was already created by the Application Studio it will be replaced. %style(border-style,'groove')
html-tag-specifier: For some elements more than one html tag is generated depending on the usage. For example if a hyperlink is defined for an image element, during the compilation both <a> and <img> tags will be created. By using the html-tag-specifiers you can specify exactly for which tag the CSS style should be created.
|