Рет қаралды 28,537
CSS pseudo classes elements tutorial example explained
#CSS #pseudo #classes
/* -------------- style.css --------------*/
a:link{
color:lawngreen;
}
a:visited{
color:grey;
}
a:hover{
color:tomato;
}
a:active{
color:yellow;
}
button:hover{
background-color: lightgrey;
}
button:active{
background-color: white;
}
li:nth-child(1){
background-color: yellow;
}
li:nth-child(even){
background-color: skyblue;
}
li:nth-child(odd){
background-color: powderblue;
}
li:nth-child(5n+0){
background-color: yellow;
}