Design comparison
SolutionDesign
Solution retrospective
I used framework : Angular,Bootstrap if you download project first time you should use command "npm i" before run project
***"npm i" or "npm install" in folder project
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
COMPONENT MEASUREMENTS π:
- The measurements is applied for mobile devices, actually there's a serious issue with this
.content[_ngcontent-xjt-c8] { width: 100vw; height: 100vh; overflow: hidden; }
- The
width: 100%
property fordiv
element is not necessary. because it's a block level element which will take the full width of the page by default.
- Use
min-height: 100vh
fordiv
instead ofheight: 100vh
. Setting theheight: 100vh
may result in the component being cut off on smaller screens.
- For example; if we set
height: 100vh
then thediv
will have100vh
height no matter what. Even if the content spans more than100vh
of viewport.
- But if we set
min-height: 100vh
then thediv
will start at100vh
, if the content pushes thediv
beyond100vh
it will continue growing. However if you have content that takes less than100vh
it will still take100vh
in space.
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
0 - @NehalSahu8055Posted over 1 year ago
Hello Coder π.
Congratulations on successfully completing the challenge! π
Few suggestions regarding design.
- Remove commented line below and see the effect.
.content[_ngcontent-xiq-c8] { /*width: 100vw;*/ Makes no sense to use, it only make us to scroll across horizontally. /* overflow: hidden; */ Makes no sense to use, it make us unable to scroll vertically. }
I hope you find this helpful.
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