Internet Explorer, good grief!
Web Development February 26th, 2008Why does it have to be so hard to work with!!!
Web development using a Mac, in my opinion, is better from a standards point of view. I build and test on Firefox primarily, using the web developer tools (and other great add-ons). Then when I’m generally happy with the templates and CSS I try them out in IE and keep a separate style sheet to ‘fix’ what IE broke.
This week I’ve been plagued with an ongoing issue of IE freezing on printing. I’ve built an application form module for a client website (all PHP) and through the CMS they can view all completed application forms using a print stylesheet so they can print it out. For some strange reason IE would hang when processing this page, but not always.
Well I’ve discovered what was causing it (at least in my CSS). Here it is:
#dform textarea {
font-size:12px;
}
Take that font definition out and all is well. But WHY??
July 15th, 2008 at 11:08 pm
Have you tried using em for font sizes? It’s a better standard for font sizing anyway. If you’re body font is 1em - generally 16px in browsers, 12 px will obviously be 0.75em.
July 16th, 2008 at 11:14 am
@Francois
You’re absolutely correct, and when building websites I invariably use em or sometimes %, having set a base size to begin with.
However, in this situation, I am presenting a complex form of more than 100 controls (an application form) in a print-ready format.
The web-side input is em-sized, this is for the client to be able to print the form out. As such there was quite a lot of tweaking to get the width of the output right and the font sizes to suit them. I wonder though whether using em here would resolve the bug..?