HTMLSource does not render properly HTML in IE8

2 posts, 0 answers
  1. pritesh
    pritesh avatar
    9 posts
    Member since:
    Oct 2010

    Posted 19 Nov 2010 Link to this post

    Hello ,

    I am using HtmlSource property of RadHtmlPlaceholder to bind the below HTML which is stored in database.
    HTML text is not properly displayed in IE8 while it is properly  displayed in mozila.

    <style type="text/css">
    p {margin:0px 0px 0px 2px;}
    ul {margin-top:2px;margin-bottom:2px;}
    ol {margin-top:2px;margin-bottom:2px;}
    .Normal {font-family:Portable User Interface;font-size:11px;color:#000000;vertical-align:middle;}
    .Custom2 {font-family:Portable User Interface;font-size:11px;color:#000000;font-weight:bold;font-style:italic;text-decoration:underline;vertical-align:middle;}
    .TableDefault {border-collapse:collapse;border:1px solid #000000;}
    .TableDefault th {padding:2px;vertical-align:top;text-align:left;border:1px solid #000000;}
    .TableDefault td {padding:2px;vertical-align:top;text-align:left;border:1px solid #000000;}
    <p style="margin:0px;"><span class="Custom2">This is sample html</span></p>
  2. Kiril Stanoev
    Kiril Stanoev avatar
    1508 posts

    Posted 24 Nov 2010 Link to this post

    Hello pritesh,

    RadHtmlPlaceholder cannot control the way the browser renders the html. In its code, RadHtmlPlaceholder is an IFrame that is placed on top of the Silverlight plugin. Therefore whatever html is passed to RadHtmlPlaceholder, it forwards it to the inner IFrame and lets it handle the display.

    Kiril Stanoev
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
Back to Top