Answers for "css only if it has class"

CSS
0

css if child has class

.parent>.child-class {
	/* Styling goes here */
}
Posted by: Guest on March-18-2021
0

css only if both classes

/*By writing both the classes this way this style will be applied on the
element which will be containing both the classes */
.class1.class2{
/*style property goes here */
color:red;
}
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language