Design comparison
SolutionDesign
Solution retrospective
Hi Developers
I find the mobile to desktop approach in this one a bit tricky but overcome with some practice.
Please check and suggest me improvements.
Regards
M.Khan
Community feedback
- @fernandolapazPosted over 1 year ago
Hi π, some of this may interest you:
HTML:
- Consider using a good semantic structure with headings, paragraphs, lists, etc. instead of wrapping each element with
<div>
. For example, you could use<main>
for the card,<h1>
for 'Get insights...' and<ul>
for the stats.
- Remember that the
<picture>
element is ideal to show different images depending on the device or screen size:
<picture> <source media="(min-width: 1440px)" srcset="images/image-header-desktop.jpg"> <img src="images/image-header-mobile.jpg" alt=""> </picture>
CSS:
- The page content could be centered using
min-height: 100vh
for the body and removingmargin: 28% 0px
from the card.
- Note: you could consider using a smaller breakpoint to move from mobile to desktop (something between 800 and 1000px maybe).
- The font size in the desktop version seems too small.
- Think about using Relative Units since they are better for scalable layouts. Something simple to start with would be to convert to rem (1 rem equals 16px by default). Consider this suggestion especially for the
font-size
.
I hope itβs useful : )
Regards,
Marked as helpful0 - Consider using a good semantic structure with headings, paragraphs, lists, etc. instead of wrapping each element with
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord