style.css
style.css(rule)
A style specification for custom CSS rules.
The style.css()
class is to be used with the tab_style()
method, which itself allows for the setting of custom styles to one or more cells. With style.css()
, you can specify any CSS rule that you would like to apply to the targeted cells.
Parameters
rule :
str
-
The CSS rule to apply to the targeted cells. This can be any valid CSS rule, such as
background-color: red;
orfont-size: 14px;
.
Returns
: CellStyleCss
-
A CellStyleCss object, which is used for a
styles
argument if specifying a custom CSS rule.
Examples
See GT.tab_style()
.