Photo Card with Caption
HTML / CSS
20 pts
Photo Card with Caption
Polish the photo card.
.photo:object-fit: coverandobject-position: center top..caption: a see-through backgroundrgba(0, 0, 0, 0.6)(the text must stay solid white)..photo:hover:filter: brightness(1.2).
Checklist
- Crop the photo and keep its top.
- Give the caption a see-through dark background.
- Brighten the photo on hover.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
