General Databases (73) Linux (41) Outside the Cube (5088) Programming (679) Web publishing (65) about DelphiFAQ (14) JavaScript (31) perl CGI (3) VBScript (1) Web Hosting (8) Windows (431)
Exchange Links About this site Links to us 
|
My font-weight property in CSS is ignored
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question: Below is my style definition from my CSS. The font-weight property gets ignored and Firefox reports an error. What is wrong? I tried fontweight and other spellings, also capitalization - with no success.
Answer: The font-weight property accepts only these values:
- normal - normal characters
- bold - thick characters
- bolder - thicker characters
- lighter - lighter characters
- 100 - or numbers
- 200
- 300
- 400 - 400 equals normal
- 500
- 600
- 700 - 700 equals bold
- 800
- 900
You cannot select numbers between these valid values. A number as your chosen 650 will be ignored by Internet Explorer and Firefox will even throw a warning in the Javascript Console.
 | |  | | .MYSTYLE {
font-weight: 650; <=== MISTAKE! Either 600 or 700!
font-family: Courier New;
font-size: 12px;
color: Blue;
background-color: White;
}
| |  | |  |
Comments:
|