DIV Element Not Imported

2 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 26 Aug 2013 Link to this post

    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>
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 29 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top