Jye Harry
@jyeharryAll solutions
- Submitted 3 days ago
Responsive card and fluid typography with clamp
- HTML
- CSS
To come up with the dynamic value for
clamp()
(the second value), I divided the mobile font size by the mobile screen width. So for example, the body text had to be 14px on mobile and the mobile screen size is 375px. So 14 / 375 = 0.0373. So the dynamic value I used inclamp()
was 3.75vw. I'm not sure if this is the best way to come up with the value but it worked well enough for all the different text presets in this challenge. However I'd like to know if there are better practices for determining the dynamic clamp value.I'd also like my BEM class names to be reviewed.
- Submitted 5 days ago
QR code challenge using flex and BEM
- HTML
- CSS
No particular areas but open to any feedback regardless