This is a migrated thread and some comments may be shown as answers.

DIV Element Not Imported

1 Answer 32 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Aug 2013, 03:59 PM
I cannot seem to be able to import the following simple HTML without losing the DIV element. How can I center a table in the document?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled</title>
</head>
<body>
    <div align="center">
        <table>
            <tr>
                <td>
                    <h1>
                        This text is centered on page
                    </h1>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 29 Aug 2013, 01:27 PM
Hi John,

Regarding <div> elements, RadRichTextBox's HTML support is only limited to the content listed here and <div> tags are indeed ignored when importing. As for how to force a table to be centered when importing a document from HTML, at this point this would unfortunately not be possible. 

Let us know if you have other comments or questions.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
John
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or