Jump to content
xisto Community
jlhaslip

Font Stretch In Css 2.1 No longer available, but letter-spacing is available to use

Recommended Posts

Found out the hard way, (of course), when I went to validate a Web Site I am building that the CSS attribute for font-stretch does not pass the W3C Validation Test. And it fails to do what it is intended to do.

It formerly was used to 'stretch' a text string by adding spacing between the characters in the string. It no longer does that.

 

Long story short, font-stretch has been replaced by the letter-spacing attribute in CSS 2.1, so if you are using it on a page, and no longer get the results from font-stretch, use letter-spacing instead.

 

Font-stretch has worked in the past, and passed the W3C validator in CSS 1 and CSS 2, but it was changed for CSS 2.1. And the replacement attribute is not documented in CSS 2 Specifications, so here is your notice about the switch-over.

 

And for the good news... CSS 3 will revert back to font-stretch instead of letter-spacing. :D

 

I wish they would get their act together...

 

Oh! and the marquee tag looks like it will get supported in CSS 3 as well... go figure.

Moving text on a page is just so wrong in terms of Accessibility, in fact, the specs for 508 approval level 2 state very clearly ... no moving/flashing text.

 

... why are they doing this to coders???

Share this post


Link to post
Share on other sites

I believe that W3 really wants to make something that is standard. People complain a lot about certain things, and then they try to make it work again. Then if it isn't as popular as they thought they go back the old one in the new version, but then it takes a lot of work to get it back to normal and not be all sorts of messy. I believe also that they want to make us really dependent in CSS, especially in 2.1, because people are complaining they only do part of it and not all of it. Anyway I doubt CSS 3 is coming out soon because they haven't even accepted 2.1 as the valid form yet. Just look at IE 8 still not conforming trying to set their own trend, but they haven't realized that all browsers are supposed to be formatted the same. Have fun yelling at W3, since they apparently are an organization of all coders, but then again the internet is not a republic, neither is it a democracy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.