Child and Sibling Selectors in CSS

Do you know what is the difference between these two?

ul li { margin: 0 0 5px 0; }
ul > li { margin: 0 0 5px 0; }

If not, you should read this article. Very simple and straightforward explanation of a few CSS selectors.

Leave a Comment