Design comparison
Solution retrospective
There's 32px of margin I see, but when I try resetting the margin inside the media query nothing happens.
The size of the image is at the mercy of it's container and not the other way around. I Wish I knew how to change that.
I tried using CSS grid , but I couldn't find a way to apply it's version of row-reverse, if it even has it.
I couldn't make the font smaller, or less dense. Font-weight to a smaller number didn't work either.
'companiestemplatesqueries' resulted from me accidently deleting the wrappers property and then pushing.
The changing image to purple I have no idea, but nothing a youtube video can't fix.
Moving on.
Community feedback
- @VCaramesPosted about 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
-
The purpose of the Main Element is to identify the main content of your page. It is not the container of you component. After the main element, you want add a container to wrap you separate components in.
-
The only heading in this component is the “Get insights that help your business grow” everything else will be wrapped in a Paragraph Element.
-
The statistics component is a list of statistics, so it should be built using an Unordered List along with a List Items Element.
-
This challenges requires the use of two images 🎑 for different breakpoints. The Picture Element will facilitate this.
Here is an example of how it works: EXAMPLE
Syntax:
<picture> <source media="(min-width: )" srcset=""> <img src="" alt=""> </picture>
More Info:
https://www.w3schools.com/html/html_images_picture.asp
https://web.dev/learn/design/picture-element/
If you have any questions or need further clarification, let me know.
Happy Coding! 👻🎃
0 -
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