Jump to content

Font-weight goes wacky in IE


TheFilmGod

Recommended Posts

When generating content through javascript, IE7 makes all the font-weight LIGHTER. Instead of bold it is regular, and instead of normal font-weight it gives it a step lower. It looks weird, because it works perfectly in FF. I don't want to post the code as it the whole uses jquery + 200 lines of js code, plus all the css/html stuff.

 

Did anyway ever have this problem or heard about this bug? I don't want to dwell hours on this phenomenon so if no one has any suggestions I'll just let ie users see lighter text.

Link to comment
Share on other sites

Are you comparing that to non-JS generated text?

 

If you put it in tags that are already defined in the CSS, it *should* be the same font-weight as any other text in the same tags. If it's not, then it would be an IE bug, but I've never heard of that.

Link to comment
Share on other sites

Yes I'm comparing to non-generated js content - pretty much everything else on the webpage. When I say generated js-content, I mean I'm using innerhtml to add it to the html page. .html() in jquery framework.

 

It's really weird. But I guess it's probably some IE bug. I guess IE users will just have to live another day where good code erodes to bad - degraded, rusted, and hacked - code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.