Amit Dhamu

Writes Code

CSS Greater Than Sign

CSS

body > div { 
     background:#fe0000;
}



HTML

<body>
     <div> // This div will have a red background because the div is a direct child of body
          <div></div> // This div will have no styling because it is NOT a direct child of body
     </div>
</body>


greater than / css / direct child

← ID Is Like New Table in MySQL →