@Ritika-Agrawal811
Posted
Hey! Good work on the challenge
I saw your code and would like to share few points to help with responsivity.
- Use relative units, don't use pixels everywhere
It's best to use rem for font-sizes and em for other properties. em values are calculated relative to an element's font size and rem are calculated against a default browser size which is 16px in most cases. You may read more about it here.
Once you start using relative units your CSS code will reduce greatly. You won't have to use so many media queries too 🙂
- Don't set a max-width on body tag
I noticed that you have assigned a maximum width of body tag. Instead add that to the main tag.
Hope these points are helpful to you!
Marked as helpful
@Caiqu3wav
Posted
Thanks, im startin with this and really want feedbacks and tips