Creates a striped list with alternating background colors.
:nth-child(odd)
or :nth-child(even)
pseudo-class selectors to apply a different background-color
to elements that match based on their position in a group of siblings.<div>
, <tr>
, <p>
, <ol>
, etc.<ul>
<li>Item 01</li>
<li>Item 02</li>
<li>Item 03</li>
<li>Item 04</li>
<li>Item 05</li>
</ul>
li:nth-child(odd) {
background-color: #999;
}
CSS, Visual
Creates a stripes background pattern.
CSS, Visual
Creates a list with floating headings for each section.
CSS, Visual
Creates a custom hover and focus effect for navigation items, using CSS transformations.