help with difference

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

.wrapper > div{}

and

.wrapper div{}

Ty for answer !
 
Joined
Mar 3, 2021
Messages
240
Reaction score
30
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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top