Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
Wrap the html content in a main tag<main>, <h6> with <p>, and add the alt attribute
alt=" "
to the img tag to fix the accessibility and error issue. click here for more on web-accessibility and semantic html Replace the <span> within the <h6> with del tag <del>, for the del tag will do the in-line styling you gave to the span.There is no need to give the body a max-width value . To center the content on the page using flexbox, add min-height:100vh to the body. Remove the margin value from the body you can give the body a padding top and bottom value.
Add the desktop image to the div containing the mobile-image, in the mobile design , give the desktop-image a display of none and style the mobile image, in the desktop design, give the mobile-image a display of none and desktop-image display: block.
In the mobile design give .container a fixed max-width value.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0 - @brilliant-smartPosted almost 2 years ago
I will update the corrections on git.. Btw, how do I give a max-width for columns to stop them from growing at a certain breakpoint say 992px?
0@HassiaiPosted almost 2 years ago@brilliant-smart add a media query at 992px and change the max-width of .container.
Marked as helpful0
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