<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- richtext.qdoc --> <title>Qt 4.8: Supported HTML Subset</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li>Supported HTML Subset</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <link rel="prev" href="richtext-common-tasks.html" /> <p class="naviNextPrevious headerNavi"> <a class="prevPage" href="richtext-common-tasks.html">Common Rich Text Editing Tasks</a> </p><p/> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#using-html-markup-in-text-widgets">Using HTML Markup in Text Widgets</a></li> <li class="level1"><a href="#supported-tags">Supported Tags</a></li> <li class="level1"><a href="#block-attributes">Block Attributes</a></li> <li class="level1"><a href="#list-attributes">List Attributes</a></li> <li class="level1"><a href="#table-cell-attributes">Table Cell Attributes</a></li> <li class="level1"><a href="#css-properties">CSS Properties</a></li> <li class="level1"><a href="#supported-css-selectors">Supported CSS Selectors</a></li> </ul> </div> <h1 class="title">Supported HTML Subset</h1> <span class="subtitle"></span> <!-- $$$richtext-html-subset.html-description --> <div class="descr"> <a name="details"></a> <p>Qt's text widgets are able to display rich text, specified using a subset of <a href="http://www.w3.org/TR/html401/">HTML 4</a> markup. Widgets that use <a href="qtextdocument.html">QTextDocument</a>, such as <a href="qlabel.html">QLabel</a> and <a href="qtextedit.html">QTextEdit</a>, are able to display rich text specified in this way.</p> <a name="using-html-markup-in-text-widgets"></a> <h2>Using HTML Markup in Text Widgets</h2> <p>Widgets automatically detect HTML markup and display rich text accordingly. For example, setting a label's <a href="qlabel.html#text-prop">text</a> property with the string <tt>"<b>Hello</b> <i>Qt!</i>"</tt> will result in the label displaying text like this: <b>Hello</b> <i>Qt!</i></p> <p>When HTML markup is used for text, Qt follows the rules defined by the <a href="http://www.w3.org/TR/html401/">HTML 4</a> specification. This includes default properties for text layout, such as the direction of the text flow (left-to-right) which can be changed by applying the <a href="#block-attributes"><tt>dir</tt></a> attribute to blocks of text.</p> <a name="supported-tags"></a> <h2>Supported Tags</h2> <p>The following table lists the HTML tags supported by Qt's <a href="richtext.html">rich text</a> engine:</p> <table class="generic"> <thead><tr class="qt-style"><th >Tag</th><th >Description</th><th >Comment</th></tr></thead> <tr valign="top" class="odd"><td ><tt>a</tt></td><td >Anchor or link</td><td >Supports the <tt>href</tt> and <tt>name</tt> attributes. Note that the <tt>:visited</tt> selector is one of those that is not supported by the rich text engine. See <a href="#supported-css-selectors">below</a> for a list of others.</td></tr> <tr valign="top" class="even"><td ><tt>address</tt></td><td >Address</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>b</tt></td><td >Bold</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>big</tt></td><td >Larger font</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>blockquote</tt></td><td >Indented paragraph</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>body</tt></td><td >Document body</td><td >Supports the <tt>bgcolor</tt> attribute, which can be a Qt <a href="qcolor.html#setNamedColor">color name</a> or a <tt>#RRGGBB</tt> color specification.</td></tr> <tr valign="top" class="odd"><td ><tt>br</tt></td><td >Line break</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>center</tt></td><td >Centered paragraph</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>cite</tt></td><td >Inline citation</td><td >Same as <tt>i</tt>.</td></tr> <tr valign="top" class="even"><td ><tt>code</tt></td><td >Code</td><td >Same as <tt>tt</tt>.</td></tr> <tr valign="top" class="odd"><td ><tt>dd</tt></td><td >Definition data</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>dfn</tt></td><td >Definition</td><td >Same as <tt>i</tt>.</td></tr> <tr valign="top" class="odd"><td ><tt>div</tt></td><td >Document division</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>dl</tt></td><td >Definition list</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="odd"><td ><tt>dt</tt></td><td >Definition term</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>em</tt></td><td >Emphasized</td><td >Same as <tt>i</tt>.</td></tr> <tr valign="top" class="odd"><td ><tt>font</tt></td><td >Font size, family, and/or color</td><td >Supports the following attributes: <tt>size</tt>, <tt>face</tt>, and <tt>color</tt> (Qt <a href="qcolor.html#setNamedColor">color names</a> or <tt>#RRGGBB</tt>).</td></tr> <tr valign="top" class="even"><td ><tt>h1</tt></td><td >Level 1 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="odd"><td ><tt>h2</tt></td><td >Level 2 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>h3</tt></td><td >Level 3 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="odd"><td ><tt>h4</tt></td><td >Level 4 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>h5</tt></td><td >Level 5 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="odd"><td ><tt>h6</tt></td><td >Level 6 heading</td><td >Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>head</tt></td><td >Document header</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>hr</tt></td><td >Horizontal line</td><td >Supports the <tt>width</tt> attribute, which can be specified as an absolute or relative (<tt>%</tt>) value.</td></tr> <tr valign="top" class="even"><td ><tt>html</tt></td><td >HTML document</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>i</tt></td><td >Italic</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>img</tt></td><td >Image</td><td >Supports the <tt>src</tt>, <tt>source</tt> (for Qt 3 compatibility), <tt>width</tt>, and <tt>height</tt> attributes.</td></tr> <tr valign="top" class="odd"><td ><tt>kbd</tt></td><td >User-entered text</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>meta</tt></td><td >Meta-information</td><td >If a text encoding is specified using the <tt>meta</tt> tag, it is picked up by Qt::codecForHtml(). Likewise, if an encoding is specified to <a href="qtextdocument.html#toHtml">QTextDocument::toHtml</a>(), the encoding is stored using a <tt>meta</tt> tag, for example:<pre class="cpp"> <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" /></pre> </td></tr> <tr valign="top" class="odd"><td ><tt>li</tt></td><td >List item</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>nobr</tt></td><td >Non-breakable text</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>ol</tt></td><td >Ordered list</td><td >Supports the standard <a href="#list-attributes">list attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>p</tt></td><td >Paragraph</td><td >Left-aligned by default. Supports the standard <a href="#block-attributes">block attributes</a>.</td></tr> <tr valign="top" class="odd"><td ><tt>pre</tt></td><td >Preformated text</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>qt</tt></td><td >Qt rich-text document</td><td >Synonym for <tt>html</tt>. Provided for compatibility with earlier versions of Qt.</td></tr> <tr valign="top" class="odd"><td ><tt>s</tt></td><td >Strikethrough</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>samp</tt></td><td >Sample code</td><td >Same as <tt>tt</tt>.</td></tr> <tr valign="top" class="odd"><td ><tt>small</tt></td><td >Small font</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>span</tt></td><td >Grouped elements</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>strong</tt></td><td >Strong</td><td >Same as <tt>b</tt>.</td></tr> <tr valign="top" class="even"><td ><tt>style</tt></td><td >Style sheet</td><td >Allows styling information to be included with the rich text. A <a href="#css-properties">limited subset of CSS syntax</a> can be used to change the appearance of the text.</td></tr> <tr valign="top" class="odd"><td ><tt>sub</tt></td><td >Subscript</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>sup</tt></td><td >Superscript</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>table</tt></td><td >Table</td><td >Supports the following attributes: <tt>border</tt>, <tt>bgcolor</tt> (Qt <a href="qcolor.html#setNamedColor">color names</a> or <tt>#RRGGBB</tt>), <tt>cellspacing</tt>, <tt>cellpadding</tt>, <tt>width</tt> (absolute or relative), and <tt>height</tt>.</td></tr> <tr valign="top" class="even"><td ><tt>tbody</tt></td><td >Table body</td><td >Does nothing.</td></tr> <tr valign="top" class="odd"><td ><tt>td</tt></td><td >Table data cell</td><td >Supports the standard <a href="#table-cell-attributes">table cell attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>tfoot</tt></td><td >Table footer</td><td >Does nothing.</td></tr> <tr valign="top" class="odd"><td ><tt>th</tt></td><td >Table header cell</td><td >Supports the standard <a href="#table-cell-attributes">table cell attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>thead</tt></td><td >Table header</td><td >If the <tt>thead</tt> tag is specified, it is used when printing tables that span multiple pages.</td></tr> <tr valign="top" class="odd"><td ><tt>title</tt></td><td >Document title</td><td >The value specified using the <tt>title</tt> tag is available through <a href="qtextdocument.html#metaInformation">QTextDocument::metaInformation</a>().</td></tr> <tr valign="top" class="even"><td ><tt>tr</tt></td><td >Table row</td><td >Supports the <tt>bgcolor</tt> attribute, which can be a Qt <a href="qcolor.html#setNamedColor">color name</a> or a <tt>#RRGGBB</tt> color specification.</td></tr> <tr valign="top" class="odd"><td ><tt>tt</tt></td><td >Typewrite font</td><td ></td></tr> <tr valign="top" class="even"><td ><tt>u</tt></td><td >Underlined</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>ul</tt></td><td >Unordered list</td><td >Supports the standard <a href="#list-attributes">list attributes</a>.</td></tr> <tr valign="top" class="even"><td ><tt>var</tt></td><td >Variable</td><td >Same as <tt>i</tt>.</td></tr> </table> <a name="block-attributes"></a> <h2>Block Attributes</h2> <p>The following attributes are supported by the <tt>div</tt>, <tt>dl</tt>, <tt>dt</tt>, <tt>h1</tt>, <tt>h2</tt>, <tt>h3</tt>, <tt>h4</tt>, <tt>h5</tt>, <tt>h6</tt>, <tt>p</tt> tags:</p> <ul> <li><tt>align</tt> (<tt>left</tt>, <tt>right</tt>, <tt>center</tt>, <tt>justify</tt>)</li> <li><tt>dir</tt> (<tt>ltr</tt>, <tt>rtl</tt>)</li> </ul> <a name="list-attributes"></a> <h2>List Attributes</h2> <p>The following attribute is supported by the <tt>ol</tt> and <tt>ul</tt> tags:</p> <ul> <li><tt>type</tt> (<tt>1</tt>, <tt>a</tt>, <tt>A</tt>, <tt>square</tt>, <tt>disc</tt>, <tt>circle</tt>)</li> </ul> <a name="table-cell-attributes"></a> <h2>Table Cell Attributes</h2> <p>The following attributes are supported by the <tt>td</tt> and <tt>th</tt> tags:</p> <ul> <li><tt>width</tt> (absolute, relative, or no-value)</li> <li><tt>bgcolor</tt> (Qt <a href="qcolor.html#setNamedColor">color names</a> or <tt>#RRGGBB</tt>)</li> <li><tt>colspan</tt></li> <li><tt>rowspan</tt></li> <li><tt>align</tt> (<tt>left</tt>, <tt>right</tt>, <tt>center</tt>, <tt>justify</tt>)</li> <li><tt>valign</tt> (<tt>top</tt>, <tt>middle</tt>, <tt>bottom</tt>)</li> </ul> <a name="css-properties"></a> <h2>CSS Properties</h2> <p>The following table lists the CSS properties supported by Qt's <a href="richtext.html">rich text</a> engine:</p> <table class="generic"> <thead><tr class="qt-style"><th >Property</th><th >Values</th><th >Description</th></tr></thead> <tr valign="top" class="odd"><td ><tt>background-color</tt></td><td ><color></td><td >Background color for elements</td></tr> <tr valign="top" class="even"><td ><tt>background-image</tt></td><td ><uri></td><td >Background image for elements</td></tr> <tr valign="top" class="odd"><td ><tt>color</tt></td><td ><color></td><td >Text foreground color</td></tr> <tr valign="top" class="even"><td ><tt>font-family</tt></td><td ><family name></td><td >Font family name</td></tr> <tr valign="top" class="odd"><td ><tt>font-size</tt></td><td >[ small | medium | large | x-large | xx-large ] | <size>pt | <size>px</td><td >Font size relative to the document font, or specified in points or pixels</td></tr> <tr valign="top" class="even"><td ><tt>font-style</tt></td><td >[ normal | italic | oblique ]</td><td ></td></tr> <tr valign="top" class="odd"><td ><tt>font-weight</tt></td><td >[ normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]</td><td >Specifies the font weight used for text, where <tt>normal</tt> and <tt>bold</tt> are mapped to the corresponding <a href="qfont.html">QFont</a> weights. Numeric values are 8 times the equivalent <a href="qfont.html">QFont</a> weight values.</td></tr> <tr valign="top" class="even"><td ><tt>text-decoration</tt></td><td >none | [ underline || overline || line-through ]</td><td >Additional text effects</td></tr> <tr valign="top" class="odd"><td ><tt>font</tt></td><td >[ [ <'font-style'> || <'font-weight'> ]? <'font-size'> <'font-family'> ]</td><td >Font shorthand property</td></tr> <tr valign="top" class="even"><td ><tt>text-indent</tt></td><td ><length>px</td><td >First line text indentation in pixels</td></tr> <tr valign="top" class="odd"><td ><tt>white-space</tt></td><td >normal | pre | nowrap | pre-wrap</td><td >Declares how whitespace in HTML is handled.</td></tr> <tr valign="top" class="even"><td ><tt>margin-top</tt></td><td ><length>px</td><td >Top paragraph margin in pixels</td></tr> <tr valign="top" class="odd"><td ><tt>margin-bottom</tt></td><td ><length>px</td><td >Bottom paragraph margin in pixels</td></tr> <tr valign="top" class="even"><td ><tt>margin-left</tt></td><td ><length>px</td><td >Left paragraph margin in pixels</td></tr> <tr valign="top" class="odd"><td ><tt>margin-right</tt></td><td ><length>px</td><td >Right paragraph margin in pixels</td></tr> <tr valign="top" class="even"><td ><tt>padding-top</tt></td><td ><length>px</td><td >Top table cell padding in pixels</td></tr> <tr valign="top" class="odd"><td ><tt>padding-bottom</tt></td><td ><length>px</td><td >Bottom table cell padding in pixels</td></tr> <tr valign="top" class="even"><td ><tt>padding-left</tt></td><td ><length>px</td><td >Left table cell padding in pixels</td></tr> <tr valign="top" class="odd"><td ><tt>padding-right</tt></td><td ><length>px</td><td >Right table cell padding in pixels</td></tr> <tr valign="top" class="even"><td ><tt>padding</tt></td><td ><length>px</td><td >Shorthand for setting all the padding properties at once.</td></tr> <tr valign="top" class="odd"><td ><tt>vertical-align</tt></td><td >baseline | sub | super | middle | top | bottom</td><td >Vertical text alignment. For vertical alignment in text table cells only middle, top, and bottom apply.</td></tr> <tr valign="top" class="even"><td ><tt>border-color</tt></td><td ><color></td><td >Border color for text tables.</td></tr> <tr valign="top" class="odd"><td ><tt>border-style</tt></td><td >none | dotted | dashed | dot-dash | dot-dot-dash | solid | double | groove | ridge | inset | outset</td><td >Border style for text tables.</td></tr> <tr valign="top" class="even"><td ><tt>background</tt></td><td >[ <'background-color'> || <'background-image'> ]</td><td >Background shorthand property</td></tr> <tr valign="top" class="odd"><td ><tt>page-break-before</tt></td><td >[ auto | always ]</td><td >Make it possible to enforce a page break before the paragraph/table</td></tr> <tr valign="top" class="even"><td ><tt>page-break-after</tt></td><td >[ auto | always ]</td><td >Make it possible to enforce a page break after the paragraph/table</td></tr> <tr valign="top" class="odd"><td >float</td><td >[ left | right | none ]</td><td >Specifies where an image or a text will be placed in another element. Note that the <tt>float</tt> property is only supported for tables and images.</td></tr> <tr valign="top" class="even"><td ><tt>text-transform</tt></td><td >[ uppercase | lowercase ]</td><td >Select the transformation that will be performed on the text prior to displaying it.</td></tr> <tr valign="top" class="odd"><td ><tt>font-variant</tt></td><td >small-caps</td><td >Perform the smallcaps transformation on the text prior to displaying it.</td></tr> <tr valign="top" class="even"><td ><tt>word-spacing</tt></td><td ><width>px</td><td >Specifies an alternate spacing between each word.</td></tr> </table> <a name="supported-css-selectors"></a> <h2>Supported CSS Selectors</h2> <p>All CSS 2.1 selector classes are supported except pseudo-class selectors such as <tt>:first-child</tt>, <tt>:visited</tt> and <tt>:hover</tt>.</p> </div> <!-- @@@richtext-html-subset.html --> <p class="naviNextPrevious footerNavi"> <a class="prevPage" href="richtext-common-tasks.html">Common Rich Text Editing Tasks</a> </p> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>