Advertise here: Contact FM.


ie7 resizes text automagically
May 5, 2008 2:50 PM   RSS feed for this thread Subscribe

XHTML+CSS issue: IE7 automatically enlarging text and uncentering stuff.

I am developing a website. It looks fine in all browsers (FF, IE6, Opera and Safari) except IE7:
When I load a page, it bumps up the font size to what looks like "very big", and the main content is no longer centered. If I make any changes to Zoom or Font Size, the font goes back to a normal size and the content is centered again. It stays centered regardless of how small or large I make the text: I can't go back to the uncentered state, except by loading another page. If I reload the same page, it fixes itself.
The page is here and the CSS here. Using IE 7.0.5730.11
posted by signal to computers & internet (4 comments total) 2 users marked this as a favorite
At a quick glace using Ems for font sizes could be your problem, possibly as a result of interacting badly with the pixel fontszie you set in BODY.
posted by Artw at 3:02 PM on May 5


To start, your XHTML doesn't validate, it seems there's a stray space before the doctype declaration.

Also, IE7 has issues with the * hack:
* html .container .head .menu1 a

In my experience, it's much better to separate all the IE hacks in different CSS documents and link them with conditional comments (I use one for IE 6 and lower, with all the box model hacks, and one for IE7 if needed).

Hope this helps!
posted by clearlydemon at 3:05 PM on May 5 [1 favorite]


It was a validation issue, a stray BOM in my templates.
Thanks!
posted by signal at 3:21 PM on May 5


Whew. Glad to know it's fixed!
posted by clearlydemon at 9:42 PM on May 5


« Older What was the name of the humer...   |   Emma Thompson TV series? Late... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
IE6 css postioning bug January 21, 2008
IE6 Image Display Bug November 5, 2007
IE7 CSS background mayhem September 26, 2007
Should I upgrade to IE7 while learning design to... November 11, 2006
Will Internet Explorer 7 cure everything that ails... October 31, 2006