Font Annoyance

While doing a little copying/pasting with some modifications of ColdFusion pages with HTML output, I could not figure out what was causing my fonts to go all screwy. The font for that page was showing up almost twice as big than what it was supposed to be! This issue was found in Internet Explorer 7, while FireFox 3 was showing properly, making it all that more difficult to diagnose.

I was including a ColdFusion page as an event handler before anything else, including the pages head section. What I found was a “<!— blah —>” being inserted as the first thing in the HTML code. Using the process of elimination, I silenced the output and TA-DA!

Don’t put HTML comments before the head section!