|
Posted by Ed Mullen on 11/08/06 19:45
dorayme wrote:
> In article <atqdnY3cn_kx98zYnZ2dnUVZ_tKdnZ2d@comcast.com>,
> Ed Mullen <ed@edmullen.net> wrote:
>
>> dorayme wrote:
>>> In article
>>> <1162941520.720167.230150@h54g2000cwb.googlegroups.com>,
>>> "jambiani" <mrievers@gmail.com> wrote:
>>>
>>>> Why cant i get my text to be 500 in boldness, my code
>>>> style="font-weight: 500;"
>>>>
>>>> It will do if i write Bold, but not in numbers 100, 200, 300 .......
>>>>
>>>> It says on www.w3schools.com but i cant get it to work.
>>>>
>>> If you have
>>>
>>> h1.one { font-weight: 100 }
>>> h1.two { font-weight: 200 }
>>> h1.three{ font-weight: 300 }
>>>
>>> etc
>>>
>>> in your stylesheet
>>>
>>> and
>>>
>>> <h1 class="one">This text</h1>
>>> <h1 class="two">This text</h1>
>>> <h1 class="three">This text</h1>
>>>
>>> etc
>>>
>>> in your HTML
>>>
>>> you will see the differences.
>>>
>>> Remember, you are not styling for font-size here.
>>>
>> Err, what am I missing? I see no difference.
>>
>> http://edmullen.net/temp/weight.html
>
> Perhaps you were not using my favourite font: "Rattlesnake" or
> "Ice Prawn on the Barbi". (see the specs)
>
> It appears that from the specs 200 is at least as dark as 100 and
> 300 is at least as dark as 200. Now, we can deduce from this that
> something at 300 is at least as dark as 100. So you need to
> understand that when I say "see the difference" I am referring to
> something logically subtle. These things are not for mere eyes to
> see.
Ah, yes! I see now. But from your post I assumed (obviously
erroneously) that the specific code you suggested would demonstrate a
difference, as in your statement "you will see the differences." I can
see from Richard's reply quite easily why that example didn't work.
[snip]
> CSS 2.1 does not specify how the computed value of font-weight is
> represented internally or externally.
>
All of the citation you gave was fascinating. However, that last line
there is quite precious, reminding me just why I love computers so much:
Everything makes perfect sense even when it doesn't. :-D
--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
I can please only one person per day. Today is not your day. And
tomorrow isn't looking good either.
[Back to original message]
|