Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css first

:first-of-type {
	//styles here
}

: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 element

p:first-child {
  font-size: 1.5em;
}
Comment

select first div css

#content div:first-child {
/*css*/
}
Comment

select first div css

#content_id div.class_name:first-child {
	/*your style*/
}
Comment

PREVIOUS NEXT
Code Example
Css :: css how to make something italized 
Css :: css comment 
Css :: flex align top css 
Css :: background fixed 
Css :: background image and position css 
Css :: Applying an ellipsis with css 
Css :: red css color codes 
Css :: bootstrap accordion some change 
Css :: input rtl html 
Css :: css background linear gradient transparent 
Css :: change angular material icon color 
Css :: print not showing background image 
Css :: make web page float to center of page 
Css :: how to add font otf format in html 
Css :: ie11 flex 1 
Css :: css n number of lines only 
Css :: css last item should be flex end 
Css :: css border shorthand 
Css :: repeating-linear-gradient 
Css :: how to slide div from left to right using css 
Css :: css transform size 
Css :: cssnano 
Css :: Make the cursor appear as a crosshair on all links of the web page: 
Css :: use css in cshtml 
Css :: input text only css 
Css :: laravel enum column 
Css :: scss import class from another file 
Css :: css translate x and y 
Css :: css input border radius focus 
Css :: image overlay in css 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =