CSS element inside element code example
Example 1: child css
p:nth-child(2)
{
background: red;
}
Example 2: css how to style a div
/*
<div class="#">
<p>Hello World</p>
</div>
*/
/*put a dot in front of the name from your class*/
.#{
display: block;
margin: auto;
width: 50%;
}
Example 3: how to edit divs in css
# or . depends on class or id