TheFilmGod Posted August 13, 2009 Share Posted August 13, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/170160-font-weight-goes-wacky-in-ie/ Share on other sites More sharing options...
haku Posted August 14, 2009 Share Posted August 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/170160-font-weight-goes-wacky-in-ie/#findComment-897780 Share on other sites More sharing options...
TheFilmGod Posted August 14, 2009 Author Share Posted August 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/170160-font-weight-goes-wacky-in-ie/#findComment-897855 Share on other sites More sharing options...
haku Posted August 14, 2009 Share Posted August 14, 2009 Try using createTextNode() and appendChild() instead of innerHTML - innerHTML has been known to be buggy in IE at times. I have no idea if it will help, but it's something to try. Quote Link to comment https://forums.phpfreaks.com/topic/170160-font-weight-goes-wacky-in-ie/#findComment-898370 Share on other sites More sharing options...
TheFilmGod Posted August 14, 2009 Author Share Posted August 14, 2009 Yeah I figured, but when you come to think of it, createTextNode() and appendChild() will be a pain in the arse in comparison to innerhtml. I might just have to live with it. Quote Link to comment https://forums.phpfreaks.com/topic/170160-font-weight-goes-wacky-in-ie/#findComment-898521 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.