Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css first child

:first-child {
	//styles here
}

:nth-child(1) { //the benefit of this is you can do it for 2nd, 3rd etc...
	//styles here 
}
Comment

css first child

/*CSS First - forth child*/
:first-child {}

:nth-child(2){}
:nth-child(3){}
:nth-child(4){}
Comment

css first child

:nth-child(1){
/* css code here */
}
Comment

select first 5 child css

li:nth-child(-n+5) {
    color: green;   
}
Comment

css first child

selector:first-child{
  //style
  
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to combine two screen sizes in media queries css 
Css :: flex items not taking full width 
Css :: multer buffer undefined 
Css :: media queries and or conditions 
Css :: rainbow text shadow animation 
Css :: responsive table style 
Css :: change image color with css 
Css :: add background in text 
Css :: chrome developer tools send get request 
Css :: align links to right css 
Css :: css flex justify self 
Css :: *{ margin: 0; padding: 0; box-sizing: border-box; } 
Css :: css transparent background behind text 
Css :: css make all text center 
Css :: color gradient 
Css :: css border with 8 values 
Css :: css links 
Css :: text-align attribute in css 
Css :: How to make website responsive for safari 
Css :: how to fix rough text html 
Css :: css ovel 
Css :: patterns with css 
Css :: change disbled button background pyqt5 
Css :: ios prevent scroll css 
Css :: CSS The object-fit Property 
Css :: scss a link style 
Css :: bootstrap-navbar-containers 
Css :: bootstrap container 
Css :: css 4 3 ratio 
Css :: border-width in percentage 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =