I am proud that I used Flexbox to distribute space between and within elements, rather than relying on margins or padding. For my next project, Iād like to experiment writing CSS without using BEM methodology, so I can gain more experience with other types of selectors besides class selectors.
What challenges did you encounter, and how did you overcome them?I found it challenging to reduce font-size for smaller screens without using media queries. Eventually, I used clamp()
to resize the font-size based on the viewport.
Initially, I wanted an instant transition from desktop to mobile font-size once the viewport reached a certain width. Ultimately, I used clamp()
, which resizes font-size gradually. Is there a way to accomplish an instant resize without using media queries?