@Antonio-Riccelli
Posted
This looks good! I completely empathise with the struggles regarding styling. It never turns out to be as simple as you initially thought it would.
The code looks good as well! Some suggestions:
HTML
- Consider using semantic tags (e.g.,
<main>
instead of<div>
s), this is very important for accessibility, but it will also make your code more readable and debuggable. - Consider adding an actual value for the
alt
property of your<img>
tag.
CSS
- This is just about experimenting a different approach. You could consider assigning colors to variables. Check this for a better explanation: MDN In small challenges, it won't make much of a difference, but it will come in handy in larger projects.