@weldu0
Posted
Like you said, you did great, though there are always things to improve. You used px
, but you could also consider using other units like em
so user preferences could have an effect on your site.
To convert from px
to em
:
- 1em is typically equivalent to 16px (assuming the default font size).
- To convert pixels to ems, divide the pixel value by 16 (px / 16 = em).
For example, 24px would convert to 24 / 16 = 1.5em. This approach makes your design more adaptable to user settings.
You don't have to use em
, but it's a good idea to consider this method and keep it in mind for future use.
Marked as helpful