How to apply CSS correctly to iFrame?

Folks, i have the following problem. My website uses an iframe to select an element aso... The important thing is that FF (and Chrome) renders the css correctly while IE seems to not apply it or at least parts of it.

I placed a simplified example of my site here: http://thariama.th.ohost.de/ie2.html Please have a look using FF and IE. You need to click on "Click me!" and the iframe opens up.

To be honest, it does not look very nice, but thats because i stripped out as much as possible out of the more complex website. There is a lense image right of the input field X2. In FF it gets displayed and it gets replaced with another image if the user types in three letters. In IE nothing happens, also other css-settings have not been applied as you can see.

What i can do to make IE apply the css too?

Answers


I solved this problem by adding a doctype definition to ie2.html. Seems like IE uses an own one if none is defined what leads to a different css.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Need Your Help

X11 errors with pygtk on Mac OS X 10.5.8

python pygtk x11 osx-leopard

I have a python program that implements pygtk for GUI. I have it running successfully on some MAC computers running os 10.6.*, after installing pygtk with macports. I have just installed pygtk on...

Select MAX from 2 tables

sql db2

I have the following select and I would like to return only the most recent TranDate when the Tracct occurs more than once.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.