Design comparison
Solution retrospective
how do you make height responsive. and whats the best way to make your width responsive
Community feedback
- @MelvinAguilarPosted 11 months ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- With heights, it's better to let the content define the height of the component. If you need to set a height, it's preferable to use
min-height
instead of height. For widths, it's better to define them withmax-width
so that when screen dimensions change, the component adapts accordingly.
-
Enhance accessibility and organization by using semantic elements like
<main>
and<footer>
. -
Maintain a clear heading hierarchy, starting with <h1> and progressing through heading levels. Source π
-
Apply
box-sizing: border-box
to include padding and border in width and height calculations. Details here π. -
Optimize code organization by adding
font-family: "Outfit", sans-serif;
to the body instead of individual<p>
and<h*>
elements.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding! ππβοΈ
0 - With heights, it's better to let the content define the height of the component. If you need to set a height, it's preferable to use
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