Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css child selector

/*
	Descendant selectors are used to match to any nested element. 
	Child combinators, on the other hand, only match to the direct 
	child element and are defined by the greater than symbol. 
	The selector on the right must be the direct child of the element 
	on the left.
*/
/* child combinator */ 
  parent > child {...}

/* descendant selector */ 
  parent child {...}
  ancestor descendant {...}
Comment

how to use child selectors in css

ul li { margin: 0 0 5px 0; }
ul > li { margin: 0 0 5px 0; }
Comment

PREVIOUS NEXT
Code Example
Css :: abc 
Css :: backface-visibility: hidden; 
Css :: github lottie 
Css :: matrix in css 
Css :: css clip path text 
Css :: td min-height not working 
Css :: css selector first level child 
Css :: css box-sizing 
Css :: css grid cheat sheet 
Css :: bootstrap-navbar-brand 
Css :: free css templates 
Css :: disable dequeue contact form7 
Css :: arriviste 
Css :: modificar la clase segun id que está dentro de un span css 
Css :: css tutorial point 
Css :: numpy not installling 
Css :: hide scrolbar 
Css :: css clip path alternative 
Css :: table inside table not matching borders 
Css :: install canon mf211 printer ubuntu 
Css :: 0 
Css :: css initial letter chrome 
Css :: clippy css 
Css :: .dropdown { float: left; overflow: hidden; } 
Css :: skip main content - keyboard accessible buttons on navbar - css 
Css :: sass @use 
Css :: css diminuer épaisseur trait 
Css :: add on click event on button on payment screen odoo pos 
Css :: CSS Div Angel (prize) 
Css :: how to draw hex colun in html css 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =