document.getElementById("conf").style .fontWeight ="bolder"; doesn't work in IE??
i am new to javascript ....
i am facing the same problem . i am trying to get the text in a table cell to bolden on the load event of the form using javascript
document.getElementById("conf").style .fontWeight ="bolder";
document.getElementById("conf").style .color ="black";
where conf is the id of the "td" tag in the table.....works in FF but not in IE.
Status:
Open Apr 24, 2008 - 01:02 AM
C#, web development
2answers
Answers
Jan 13, 2009 - 03:38 AM
Hi fellow developer,
Does it work if you set the value to "bold" instead of "bolder"?
In my experience, none of the regular browsers can actually display more than two different values of font-weight, namely "normal" and "bold". There might be other supported values, like any number between 1-999 and "bolder" etc. but they all come out as either "normal" or "bold" on the screen.
Come to think of it, this is probably an issue with the font files, since most fonts only provides two different sets of characters - weight-wise.
I hope this was helpful. If you have an example of a situation which will show something different than "normal" or "bold", I'd be very interested to hear about it.
Cheers,
Jakob
Mar 24, 2009 - 06:49 AM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment