child css
p:nth-child(2)
{
background: red;
}
css nth child
:nth-child(1) { /*advantage is you can do it for 2nd, 3rd etc. */
/* styles go here*/
}
css apply style to direct children
/*
Use the ">" selector to apply css to direct children of a parent element.
example: https://jsfiddle.net/dbeachnau/54w6x0pj/2/
*/
.parent > .child { color:red; }
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us