Will CSS Selectors Play A Large Role in Web Design?

By HTMLGoodies Staff

The new features of CSS3 include pseudo classes and pseudo elements which enable designers to select items according to where they are within the Document Object Model (DOM). CSS selectors provide developers and designers with options that didn't previously exist, and open new opportunities for web design and development.

By using "::nth" selectors, developers can specify arbitrary positions for selections including :nth-child and :nth-of-type. One developer, Chris Coyier at CSS-Tricks, believes that they should be extended to include pretty much everything. Additional ::nth selectors would enable the use of typography effects similar to those which can be produced using Lettering.js, but would not require the use of JavaScript.

Although the W3C CSS Working group mailing list member have largely supported Chris' ideas, they also reiterate the fact that even if it was worked into the CSS spec, it would still have to be implemented in web browsers, and that's a whole other issue.

Read the original article here.

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.
Thanks for your registration, follow us on our social networks to keep up-to-date