In addition to cgraz's comments, my first question when I hear it does not work in IE is, "Is the very first line of the page a fully qualified doctype declaration?" If not, then IE will be in quirks mode, and will get the dimensions wrong for any box elements that have non-zero values for margins, paddings, and/or borders.