@MelvinAguilar
Posted
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML π·οΈ:
- Wrap the page's whole main content in the
<main>
tag.
CSS π¨:
- In this challenge, there's no need to use a media query; you can remove it. Additionally, as a side note, the values
375px
and1440px
are just references indicating the dimensions of the challenge's screenshots. You don't need to incorporate them into the media query.
- Use
font-size
inrem
orem
units rather than pixels for better responsiveness Resource.
- You should use the
box-sizing: border-box
property to make thewidth
andheight
properties include the padding and border of the element. This will make it easier to calculate the size of an element. You can read more about this here π.
- Use
min-height: 100vh
instead ofheight
. Setting the height to 100vh may result in the component being cut off on smaller screens.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful
@Asumpta-1
Posted
@MelvinAguilar Thank you Melvin for such a detailed response. I'll make the changes and also read up on the resources. Much appreciated))