Zadanie pseudoklasy css

Data utworzenia: 2024-11-25 11:02:53
/* Zadanie 1: Pokoloruj parzyste elementy */ ol li:nth-child(even) { color: blue; } /* Zadanie 2: Pokoloruj tylko pierwszy element typu SPAN */ span:first-of-type { color: red; } /* Zadanie 3: Pokoloruj pierwszy i ostatni paragraf */ p:first-child, p:last-child { color: green; } /* Zadanie 4: Po najechaniu na tytuł zadania zmiana koloru */ h1:hover { color: lightcoral; transition: color 0.3s ease; }
Powrót