Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Css :: feature detect css 
Css :: css last child with class 
Css :: css height property 
Css :: what is universal selector 
Css :: nth child 
Css :: fixed image position while scrolling 
Css :: css background image 
Css :: modern css fonts 
Css :: css interne 
Css :: bootstrap badges 
Css :: text-align attribute in css 
Css :: animation using css 
Css :: rem in css 
Css :: transform css 
Css :: circle as a pseudo element 
Css :: indexes vs foreign key 
Css :: text vs font properties in css 
Css :: css how to find all ids that end with something 
Css :: highchart font family 
Css :: Viewport is 480 pixels or smaller css 
Css :: abstände zwischen zeilen html 
Css :: css absolute in absolute 
Css :: css position property 
Css :: background path css 
Css :: How to convert directory SASS/SCSS to CSS via command line? 
Css :: what happens when the width is 0 and there is a border and box-sizing is set to border-box? 
Css :: vendor css 
Css :: css color 
Css :: css selector id class 
Css :: text in one line css 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =