DEV Community

Discussion on: CSS Combinator Selectors

Collapse
amankanojiya profile image
AMANKANOJIYA

.container ~ p {
font-size : 2rem;
}
Sir, I do not understand. Can you pls Give me an Example

Collapse
sir_zellot profile image
Ilja Zelenov • Edited on

here you go

Collapse
amankanojiya profile image
AMANKANOJIYA

Thank you So much, sir. It will help me a lot. I got it as it will grab all elements from the container in which ~ is defined

Collapse
deyrupak profile image
Rupak Dey Author

Thank You! :D

Collapse
deyrupak profile image
Rupak Dey Author

That's a great example by @sir_zellot there!

Collapse
amankanojiya profile image
AMANKANOJIYA

yes, Sir, I got it