Design comparison
Solution retrospective
I faced difficulty to responsive the page
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Karthigeyan! 👋
Congratulations on completing this challenge! 🎉
This is already a good start. But, you can do some improvements to make it fully responsive.
- The card only needs a
max-width
to be responsive. For, theheight
, let the elements inside it control the height. For thewidth
, it won't allow the card to shrink if needed. So, by settingmax-width
, you allow the card to shrink if ever needed. - I recommend making the
body
element as the flex container to make the card in the middle of the page regardless of the users' device. Usingmargin
is not making it to "actually" in the middle of the page. But, by making thebody
element as a flex container and setmin-height: 100vh
, it will make the card always in the middle of the page. - I suggest adding some
padding
on thebody
element to prevent the card from filling the entire page or touching the edges of the screen. - I suggest making the
img
as block element and setmax-width: 100%
to make it easier to work withimg
element.
Lastly, I suggest fixing all the issues that have been reported.
That's it! I hope this helps you making the site fully responsive. 😊
1 - The card only needs a
- @javascriptoooPosted over 2 years ago
Given the accessibility issues -- you need to include at least the
<main>
landmark.The
<main>
landmark tag can be inserted around your content inside the<body>
. Here is some documentationAdding the
<main>
landmark will remove 2 accessibility issues! :)Also, with accessibility, you cannot skip headings. Change your
h3
tag to anh1
and stylize the text from there. Headings are used by screen readers for people to navigate the page. AnH1
is the main topic. So users can jump to it. If you have multiple headings, the user can skip them in screen readers.That should take care of the final accessibility issue.
Check out this Headings Documentation
Hope that helps! Great work!
Steven
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