CSS Greater than sign ( >)

A  match occurs  when an element is the direct child of some other element. A child selector is made up of two or more selectors separated by “>”.

body > div { background:#000}
<div> <-- This div will be affected
      This one will not be affected because it is not the direct child of the body tag.



  • Posted in: CSS