johnnyb
10-27-2008, 05:45 PM
I'm 99.9% finished a drupal skin, but I can't figure out a font problem I'm having.
The font is set quite high up on the DOM tree - on the body tag and maybe another wrapper, and it is supposed to be the same, (Verdana), throughout the site. However, IE7 displays a different font in the content area of article pages than it does in the content area of the main index page.
Main Index Page: http://bodybuilding.elitefitness.com (look at the 2nd article - there isn't much text in the first)
Article Page: http://bodybuilding.elitefitness.com/boosting-testosterone-levels-sustain-alpha
Here's an image of the two screenshots, taken in XP with IE7, (we have the same problem in Vista):
http://johnbeales.com/demos/ef_font_demo.png
If I check out what the fonts are supposed to be with the IE developer toolbar they both come back as Verdana. Although there is a lot of bad HTML in the pages, (there's a ton of legacy content that was imported and will be cleaned up as time goes on), both pages render in Standards mode. There are a couple of validation errors, but none of them should mess up IE that badly, and they are nearly identical on each page.
There is some javascript DOM manipulation on the page that I thought may be causing the problem, but when I turn off javascript & clear my cache it does not fix the problem.
If anyone has any idea what's going on here, I would love to know.
Thanks in advance!
John
The font is set quite high up on the DOM tree - on the body tag and maybe another wrapper, and it is supposed to be the same, (Verdana), throughout the site. However, IE7 displays a different font in the content area of article pages than it does in the content area of the main index page.
Main Index Page: http://bodybuilding.elitefitness.com (look at the 2nd article - there isn't much text in the first)
Article Page: http://bodybuilding.elitefitness.com/boosting-testosterone-levels-sustain-alpha
Here's an image of the two screenshots, taken in XP with IE7, (we have the same problem in Vista):
http://johnbeales.com/demos/ef_font_demo.png
If I check out what the fonts are supposed to be with the IE developer toolbar they both come back as Verdana. Although there is a lot of bad HTML in the pages, (there's a ton of legacy content that was imported and will be cleaned up as time goes on), both pages render in Standards mode. There are a couple of validation errors, but none of them should mess up IE that badly, and they are nearly identical on each page.
There is some javascript DOM manipulation on the page that I thought may be causing the problem, but when I turn off javascript & clear my cache it does not fix the problem.
If anyone has any idea what's going on here, I would love to know.
Thanks in advance!
John