OK, apparently the html tags in the previous post were stripped out, but they were there in the original...
>I''m trying to apply styles to some HTML that I load from a string, but its not working. What am I doing wrong? The CSS file loads ok, so I am assuming there is something wrong in the way I am trying to do this.
>
>Here is a sample code fragment:
>
>Dim strHTMLText As New StringBuilder
>With strHTMLText
> .Append("")
> .Append("
This is a sample heading
")
> .Append("
This is a sample div.
")
> .Append("
This is another sample div.
")
> .Append("")
>End With
>htmlMessages.LoadFromString(strHTMLText.ToString)
>htmlMessages.LoadCSS("styles.css")
>