Add three rules with pseudo-classes: a:hover: colour crimson. Even list items (li:nth-child(even)): background colour #fef3c7. The first list item (li:first-child): font-weight: bold.
Make the quiz table easier to read. Keep the td padding rule and add: Even rows of the body (tbody tr:nth-child(even)): background #f1f5f9. A tr:hover rule: background #fef3c7. The last cell of every row (td:last-child): text-align: right.
The café menu has two levels of list. Style it with combinators and attribute selectors: Only the top-level items (direct children of .menu): border-bottom: 2px solid #cbd5e1. Use .menu > li so the inner items get no border. The inner …
Style the Chess Club page without changing the HTML. In the <style> element add: Links inside the nav: colour navy (use a descendant selector). The paragraph directly after the h2: font-weight: bold (use +). Links whose href ends with .pdf: …
Use the two “both directions” techniques: Make .hero a flex container and centre its heading with justify-content: center and align-items: center. Give .photo position: relative. Centre the .badge on the photo: position: absolute, top: 50%, left: 50% and transform: translate(-50%, …
Centre the club fair page: Centre the h1 text with text-align. Make .card 300px wide and centre it with margin: 0 auto (left and right margins auto).
Show the club shop items as cards in one row. In the .card rule: display: inline-block and width: 160px. margin: 8px. Line up the tops of the cards with vertical-align: top.
Turn Abel’s tags into neat pills. In the .tag rule add: display: inline-block padding: 4px 10px margin-right: 6px
Selam’s article has two photos: .left: float left with margin-right: 12px. .right: float right with margin-left: 12px. Make the article contain its floats with display: flow-root. Make the footer clear both floats.
Let the text of the Keren article flow around the photo: Float the img to the left with a 12px right margin. Make the .footer clear the float (clear: both) so it starts below the photo. The image file does …
