You probably do not include DOCTYPE in your document, thereby throwing IE into quirks mode.
Add this to the top of the file, for example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
See the difference here: with doctype , without doctype .
It is very good practice to always include DOCTYPE in your document to make your site as consistent as possible in browsers. With DOCTYPE and reset, cross browser templates are much more reliable.
DOCTYPE . fooobar.com/questions/39897/...
, - Stackoverflow, , -: Doctype.