I have a html file to be displayed in my application. I decided to use DirectHtml, but only the text was displayed, not the color nor the background being set in the body tag. My html file looks like following:
<html>
<head>
<title> My title </title>
</head>
<body style="background-color:#333333;color:#FFCC00">
My content here
</body>
</html>
Looked into the source code of the response page, I saw that the application already deleted the body tag, only keep the content. And, it did not preserve the style of the body.
Is there anyway I can pass the background color to DirectHtml object ?? Or should I use another class for displaying html file ?
I also read about TemplatePane, but I couldnt figure out how to use the class, and is it suitable for my case.
Thanks alot for your help.
I found the answer. If i
I found the answer. If i define the style outside (in head tag my case) it works fine. But the inline style for body doenst work with DirectHtml.