: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
}
p:first-child {
font-size: 1.5em;
}
Code Example |
---|
Css :: css hover to disable |
Css :: underline height |
Css :: css circle |
Css :: css ellipsis max width |
Css :: border: 1px solid black; |
Css :: use font awesome as content in css |
Css :: css overflow truncate |
Css :: css avoid line break in span |
Css :: css perfect box shadow |
Css :: css make something always on top |
Css :: downgrade composer to 1 in vagrant |
Css :: elementor accordions closed by default |
Css :: smooth transition in and out css |
Css :: css breakpoints |
Css :: input time without am pm |
Css :: css center text in div |
Css :: css overflow y 3 dots |
Css :: font awesome before after |
Css :: transition scale |
Css :: how to increase space between lines in css |
Css :: css glow text |
Css :: textarea only one line |
Css :: vertical-align tablerow |
Css :: jquery .css multiple |
Css :: css media two conditions |
Css :: css contain text in div |
Css :: padding up down left right |
Css :: white border css |
Css :: hidden elements blinking on hover |
Css :: circle with 4 colors css |