There are several ways to achieve this, since it is often necessary to provide alternative stylesheets for IE compared to other browsers.
However, it is important to note that the IE version is also crucial - different versions of IE can have different problems, so you should target your hacks. In particular, Microsoft recently released IE9, which is significantly more compatible with other browsers than earlier versions; you almost certainly won't need your hack in IE9, so you have to be careful to rule it out.
If you explicitly want to target IE - for example, you need to get around a specific IE bug, then the best approach is to use conditional comments. This is an IE-specific feature that allows you to specify code that only works in IE, as well as specify the versions of IE in which it will work.
Conditional comments are as follows:
IE sees special code; all other browsers view it as a regular HTML comment and ignore it.
You can learn more about them here: http://www.quirksmode.org/css/condcom.html
I would point out that many problems with window size in IE are caused by not using a valid Doctype. If your HTML code forces the browser to go into quirks mode, then you get the same problems in the same way, but the correct solution is not to crack styles until it works; the correct solution is to fix the HTML so that the browser does not go into quirks mode. This should lead to the fact that the box model will work correctly, and many problems with the odd layout will disappear.
source share