PDA

View Full Version : CSS-Code in Html-Class don't work in IE



thomashill
8 May 2009, 3:56 AM
Hi,

i use GXT 2.0 with GWT 1.6.4

The Internet Explorer seems to ignore style-data in the Html-Class.
I also tried the HtmlContainer-Class, but without success.

I have the following simple Code:
Html h = new Html("<style>.test{color: red;}</style>"
+ "<div class='test'>"
+ "<h1>Heading1</h1>"
+ "</div>");
myPanel.add(h);

In Firefox 3.x it works fine (text is red), but in IE7 the style with the color don't work (text isn't red).

Is there a workaround?

sven
8 May 2009, 4:06 AM
I am moving this to the help forum as it is really the better place there.