CSS pseudo classes 👨‍👧‍👦

CSS pseudo classes elements tutorial example explained #CSS #pseudo #classes /* -------------- --------------*/ 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; }
Back to Top