Supported HTML Subset | Qt GUI 5.15.18 (original) (raw)
background-color
Background color for elements
background-image
Background image for elements
color
Text foreground color
font-family
Font family name
font-size
[ small | medium | large | x-large | xx-large ] | pt | px
Font size relative to the document font, or specified in points or pixels
font-style
[ normal | italic | oblique ]
font-weight
[ normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]
Specifies the font weight used for text, where normal
and bold
are mapped to the corresponding QFont weights. Numeric values are 8 times the equivalent QFont weight values.
text-decoration
none | [ underline || overline || line-through ]
Additional text effects
font
[ [ <'font-style'> || <'font-weight'> ]? <'font-size'> <'font-family'> ]
Font shorthand property
text-indent
px
First line text indentation in pixels
white-space
normal | pre | nowrap | pre-wrap
Declares how whitespace in HTML is handled.
margin-top
px
Top paragraph margin in pixels
margin-bottom
px
Bottom paragraph margin in pixels
margin-left
px
Left paragraph margin in pixels
margin-right
px
Right paragraph margin in pixels
padding-top
px
Top table cell padding in pixels
padding-bottom
px
Bottom table cell padding in pixels
padding-left
px
Left table cell padding in pixels
padding-right
px
Right table cell padding in pixels
padding
px
Shorthand for setting all the padding properties at once.
vertical-align
baseline | sub | super | middle | top | bottom
Vertical text alignment. For vertical alignment in text table cells only middle, top, and bottom apply.
border-collapse
collapse | separate
Border Collapse mode for text tables. If set to collapse, cell-spacing will not be applied.
border-color
Border color for text tables and table cells.
border-top-color
Top border color for table cells.
border-bottom-color
Bottom border color for table cells.
border-left-color
Left border color for table cells.
border-right-color
Right border color for table cells.
border-style
none | dotted | dashed | dot-dash | dot-dot-dash | solid | double | groove | ridge | inset | outset
Border style for text tables and table cells.
border-top-style
Top border style for table cells.
border-bottom-style
Bottom border style for table cells.
border-left-style
Left border style for table cells.
border-right-style
Right border style for table cells.
border-width
px
Width of table or cell border
border-top-width
px
Top border width for table cells.
border-bottom-width
px
Bottom border width for table cells.
border-left-width
px
Left border width for table cells.
border-right-width
px
Right border width for table cells.
border-top
px
Shorthand for setting top border width, style and color
border-bottom
px
Shorthand for setting bottom border width, style and color
border-left
px
Shorthand for setting left border width, style and color
border-right
px
Shorthand for setting right border width, style and color
border-top
px
Shorthand for setting top border width, style and color
border-bottom
px
Shorthand for setting bottom border width, style and color
border
px
Shorthand for setting all four border's width, style and color
background
[ <'background-color'> || <'background-image'> ]
Background shorthand property
page-break-before
[ auto | always ]
Make it possible to enforce a page break before the paragraph/table
page-break-after
[ auto | always ]
Make it possible to enforce a page break after the paragraph/table
float
[ left | right | none ]
Specifies where an image or a text will be placed in another element. Note that the float
property is only supported for tables and images.
text-transform
[ uppercase | lowercase ]
Select the transformation that will be performed on the text prior to displaying it.
font-kerning
[ normal | none ]
Enables or disables kerning between text characters.
font-variant
small-caps
Perform the smallcaps transformation on the text prior to displaying it.
word-spacing
px
Specifies an alternate spacing between each word.
line-height
[% | px | pt | cm]
Specifies the height of a line. It can be one of the following:
- fixed line height in pixels, points, or centimeters.
- a percentage of the current font size.