Good job on the HTML of this!
Top tips from this that you'll need to carry with you into every future project:
- Always use a modern CSS reset at the start of the styles in every project. Andy Bell has a good one you can look up and use.
- Set the max width on your component in rem, not pixels. This means the layout will work well for all users, including those who change their default text size.
- You've not made an error by setting the font size to 1rem on
:root
however it is a really bad practice to set font size on:root
orhtml
ever. You would never set it to anything other than 1rem, and you don't need it to be on there at all. The font size is already 1rem by default and that should never change. - Similarly it is highly unusual to set the font family on
:root
. Usually this is set on the body. - Give the attribution some padding so it can't hit screen edges. I also recommend you set
text-align: center;
on this (or even on the body) so that everything is center aligned and it looks nice on mobiles.
Marked as helpful