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

first-child

p:first-child {
  background-color: yellow;
}
Comment

select first 5 child css

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

css first child

selector:first-child{
  //style
  
}
Comment

css first child of type

#mainTable>tbody means first tbody of table which take id mainTable
Comment

PREVIOUS NEXT
Code Example
Css :: how to align a content at the middle of a div with translate 
Css :: css keep background image from scrolling 
Css :: transition all ease 0.3s 
Css :: css rounded corners 
Css :: css transform duration 
Css :: scrollbar thumb height css 
Css :: css rotate animation 
Css :: is there an img cover 
Css :: css selector start with 
Css :: table fixed header 
Css :: css make div on top of everything 
Css :: css text color border 
Css :: text align justify 
Css :: why tr border not showing 
Css :: css input selector 
Css :: center anything horizontally and vertically in CSS 
Css :: css table td width not working 
Css :: remove border between td 
Css :: CS REMOVING BACKGROUND IMAGE 
Css :: css transparent input text box 
Css :: image crop using css 1:1 
Css :: how to remove link color from <a 
Css :: centred div 
Css :: how to make a square div in css 
Css :: how to remove default look of button 
Css :: ovale css 
Css :: color transition time css 
Css :: perimeter around my background image 
Css :: why css does not apply when complete url is entered home/index 
Css :: codeigniter return last inserted id 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =