I\'ve got a record management web application which displays a master record on one screen and AJAXes dynamically built editors into an editor div, which I\'ve used JQuery t
For the record, what worked to fix this was changing the CSS for closebutton from
float: right;
to
position: absolute;
right: 5px;
text-align: right;
This produces proper results in IE, and with a little padding for the internal form fields there's no worry about overlap.
for IE specific css hacks you can do something like:
#divId {
margin-right: 0; /*Normal styles for all browsers*/
*margin-right: 100px; /*The asterisk allows only for IE6 AND IE7 to read this*/
_margin-right: 90px; /*The underscore allows only IE6 to read this style*/
}
Just make sure the asterisk and underscore hacks are placed after the normal (valid) css style.
CSS hacks are needed sometimes:
* + html #editor #closebutton /* IE7 */, * html #editor #closebutton /* IE6 */ {margin-right: 100px;} // insert whatever value that fits here
You may want to consider just using a JQuery Dialog instead since its premade and the styles already work cross platform.