en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

CSS selectors

Open paroche opened this issue 6 years ago • 2 comments

It might help to have some reference or discussion of CSS selectors before jumping in here with, say 'ul > li:last-child'. with 'a[href$="zip"]' close on its heels.

To look at the case of a tutorial-user chosen at random, I, for instance, was familiar with the simple selectors: tag, #id, and .class selectors, plus :pseudo-class and ::pseudo-element selectors, and may have seen (but not used) [attribute] selectors, but what I now have found described as "combinator" selectors (">", "-", "~") were (besides space " ") new and unfamiliar (though I'm glad to be acquainted with them now). Anyway, I've educated myself and am moving on, and they're not that hard to learn, but to have a little more info on them or a reference might help some other poor fool(s). 🤷‍♂️🤷‍♀️

Probably wouldn't hurt, in any case.

paroche avatar Oct 17 '19 03:10 paroche

We could give a link somewhere...

iliakan avatar Dec 01 '19 12:12 iliakan

Would probably do more good than harm.

paroche avatar Dec 02 '19 01:12 paroche