style
attribute for the element for which you want to customize ther style. This way (which work exactly as in HTML) is much more simple but of course you will have to specify the style each time you need tostyle
attribute for a stylable element allows to add an inlined style. It works exactly as in HTML, which means that the CSS rules are inlined inside the attribute. Note that it will not erase the other CSS attributes on this element in the HTML result. However as it is the case in HTML, it will override any style set globally.
style
attribute with the following content: " font-size:12px;
".<table style="font-size:12px;"> <tableHeader> <column>Style ID</column> <column>Apply On</column> <column>Comment</column> </tableHeader> <row> <cell>header</cell> <cell>table</cell> <cell>styleClass specifying the style of the table</cell> </row> <row> <cell>apiTitle</cell> <cell>th</cell> <cell>styleClass specifying the style of the title</cell> </row> </table>With the following result:
Style ID | Apply On | Comment |
---|---|---|
header | table | styleClass specifying the style of the table |
apiTitle | th | styleClass specifying the style of the title |
class
attribute. Note that the attribute can refer to more than one class, as iit is the case in HTML.
table.custom { font-size: 12px; }And we refer to this StyleClass in our table:
<table class="custom"> <tableHeader> <column>Style ID</column> <column>Apply On</column> <column>Comment</column> </tableHeader> <row> <cell>header</cell> <cell>table</cell> <cell>styleClass specifying the style of the table</cell> </row> <row> <cell>apiTitle</cell> <cell>th</cell> <cell>styleClass specifying the style of the title</cell> </row> </table>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.