Will CSS Selectors Play A Large Role in Web Design?

By HTMLGoodies Staff


Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.

Make a Comment

Loading Comments...

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.

    By submitting your information, you agree that htmlgoodies.com may send you HTMLGOODIES offers via email, phone and text message, as well as email offers about other products and services that HTMLGOODIES believes may be of interest to you. HTMLGOODIES will process your information in accordance with the Quinstreet Privacy Policy.

Thanks for your registration, follow us on our social networks to keep up-to-date