| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#21 (permalink) | |
|
Web Developer
Join Date: Oct 2006
Posts: 2,007
|
Quote:
Where is that code from? Never seen something used like that before, especially considering there is no logic to it, and it just doesn't validate. Never heard of "clean" before. |
|
|
|
|
|
|
#22 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,411
|
__________________ Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
|
|
#25 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,190
|
Yahoo!'s developer CSS libraries are setup specifically with developing with standards in mind. You can be sure if they're using that specific technique there's a damn good reason for it (consider how much traffic the Yahoo network of sites receive compared to your own traffic) - saying you've lost faith in them because a few lines of CSS don't validate is laughable. Remember they're trying to offer a one-file solution for people to use. They don't have the luxury of adding their non-validating or browser-specific code into seperate files, to be included via CC's. |
|
|
|
#26 (permalink) | ||
|
Web Developer
Join Date: Oct 2006
Posts: 2,007
|
Quote:
They should promote the use of relative font sizing and CCs then, there are no limitations in teaching the correct method. You mention they are standards aware, seems to me from that last block they just don't care. They are using CCs and the above code block on yahoo.com, most of the coding is invalid and the css/js is inline too. Quote:
There is no correlation between web standards and traffic, MySpace has proved this unfortunately. |
||
|
|
|
#27 (permalink) | |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,190
|
Quote:
They are using relative font-sizing you tool, setting the body to 13px gets them a base-size from which the fonts are relatively sized. Have you even read their documentation? Also, since when is it Yahoo's responsibility to 'teach the correct method'? They're targeting the largest cross-section of browsers (and their high traffic means they're exposed to possibly the largest selection of browsers of any one site) and are doing so in the most standard supporting way they deem possible. It's easy to sit on the oustide and criticise, but they're doing it for real, and more than that - they actually properly test their code too. Anyway, we're probably going to go round and round here. Agree to disagree and all that. |
|
|
|
|
#28 (permalink) |
|
Web Developer
Join Date: Oct 2006
Posts: 2,007
|
Fair enough. I see your point about them having to support and test for every browser that they see on their stats, which probably leads to hacks/invalid code being the fix. Theoretically the code is wrong, but in reality the code does the job. |
|
![]() |