Wednesday, March 19, 2025

Will CSS Selectors Play A Large Role in Web Design?

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.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Popular Articles

Featured