Hline.add_css()#
- Hline.add_css(code: str, priority: int = 10)[source]#
Adds CSS to the element.
This is most useful when writing new elements. To simply add element-related CSS code to a page, usually the
CSSelement is a better choice.- Parameters
code – Css code
priority – Can be used to influence the order in which code is added to the page. Sorting is ascending, i.e. the lowest numbers appear closest to the top of the page.
See also
The
Styleelement can be used to add generic CSS code to a page.See
Element.css_class_elementandElement.css_class_containerfor information on element CSS classes and IDs.