This is not a :focus selector, which will highlight when you focus on an element.
But a selector to fire when something within is focussed.
In our...
For further actions, you may consider blocking this person and/or reporting abuse
Great tip. I just like to add some precision in terms.
focus-within
is a pseudo-class. There're pseudo-classes and pseudo-elements, the selector is the full "query" part of the CSS rule.:hover
can be used to change a button's color when the user's pointer hovers over it.::first-line
can be used to change the font of the first line of a paragraph.MDN: Pseudo-classes and pseudo-elements
100% correct on the terminology here.
Thanks for the addition
Nice post... Thank you
Thanks! Hope you learned something new today
Thanks for the post!
not so related to the subject but I noticed the inputs has the same name.. prob a copy paste typo
Ohhh good catch!
Oh sharp eyes, copy-paste indeed haha
Amzing post. Can this happen on hover too ?
Thanks Rahul,
I do think you can change this with a hover and then use "focus-within"
Thank you... will definitly use it next time
Your welcome Amarta, looking forward to see what you'll make with it.
Another good one from the evergreen Chris!π
Thank you Rey!
Amazing CSS hack that can make our lives easier βοΈ
nice article
thank you dear Ram!
Very nice
Thank you Alain!