help with difference


Joined
Mar 7, 2021
Messages
8
Reaction score
0
Hey guys !
What is the difference between :

.wrapper > div{}

and

.wrapper div{}

Ty for answer !
 
Ad

Advertisements

Joined
Mar 3, 2021
Messages
15
Reaction score
4
The > is the child selector, meaning the div needs to be directly inside of .wrapper (i.e., not a child of a child). The second means any div within .wrapper matches, even if it's a child of a child of a child.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top