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

HTMLSource does not render properly HTML in IE8

1 Answer 74 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
pritesh
Top achievements
Rank 1
pritesh asked on 19 Nov 2010, 03:35 PM
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;}
</style>
<p style="margin:0px;"><span class="Custom2">This is sample html</span></p>

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 24 Nov 2010, 02:23 PM
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.

Regards,
Kiril Stanoev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
HTMLPlaceHolder
Asked by
pritesh
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or