nth-child() css
tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}:nth-child(3) { //the number is the child number you are targeting
//styles here
}/* Selects the second <li> element in a list */
li:nth-child(2) {
color: lime;
}
/* Selects every fourth element
among any group of siblings */
:nth-child(4n) {
color: lime;
}
Also in CSS:
- css change text
- css blur background
- all cursor types
- javascript set css calss
- card syntax html
- onclick url
- postcss TypeError: require is not a function
- css play button on image
- css remove button outline
- How do you change the font colour in CSS?
- css onclick change color
- css flex content right
- font-weight css
- table border css
- ionic css not working for innerHTML
- focus um elemento altera outro css
- input remove blue glow
- como configurar los estilos para utilizar angular material
- bootstrap badge color
- bootstrap 4 material icon vertical align
- css limit text length
- absolute path and relative path
- breakline css
- make text unselectable css