+ 2

 How do you target something inside or around another element?

CSS

28th Jan 2019, 10:55 PM
Awadineou
Awadineou - avatar
2 odpowiedzi
+ 2
You can use two selectors in a row to select a tag nested inside another...div div { } , for example will select all div tags that are inside other div tags. You might find other selectors like :nth-child() useful, too. Check out this great demo. https://www.w3schools.com/cssref/trysel.asp
28th Jan 2019, 11:01 PM
James
James - avatar
+ 2
Do you mean target as in using the :target selector? https://www.w3schools.com/cssref/sel_target.asp
29th Jan 2019, 11:27 AM
Janning⭐
Janning⭐ - avatar