Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css nested

<div>
	<p>hi</p>
</div>

div p { //selects all paragraphs inside div
  color: red;
}

div > p { //selects only direct child paragraphs of div (not further nested)
  color: red;
}
 
PREVIOUS NEXT
Tagged: #css #nested
ADD COMMENT
Topic
Name
3+9 =