Design comparison
Solution retrospective
What's your take on the background? Do you position it on the bottom of page?
Community feedback
- @emestabilloPosted over 4 years ago
Hi @linzhangcs, great desktop implementation here. For your question regarding the background, I think it's better to put it inside
body
ormain-container
and look into background-position property. Here is another page with examples. This gives you the option to delete thebackground
div altogether. Would've liked to see a mobile version of the project :-) Hope this helps!1@linzhangcsPosted over 4 years ago@emestabillo 👋 thanks for your answer! Yes, that's definitely the better option. Also, I added the mobile version as well :)))
1 - @jiroRiPosted over 4 years ago
Your work pretty much on the component itself is really great!
However, here's a workaround I tried to be able to fix your solution's responsiveness, mainly the background for desktop version and multiple screensizes especially for bigger screens:
.body
- added
height: 100vh;
anddisplay: flex;
.
.background
- changed
position: absolute;
toposition: fixed;
- added
background-size: 100% 50%;
- changed
height: 420px;
to100%;
- added
background-position-y: 100%;
.main-container
- remove the
height: 800px;
or just set it toheight: auto;
.data-storage
- from
margin: 45px auto 60px
tomargin: 0 auto;
Let me know if I were able to be of help. Best of luck bro and keep at it! 💪
1@linzhangcsPosted over 4 years ago@jiroRi Hi 👋 thanks for your detailed review! It's pretty helpful
0 - added
- @ovidiuantonioPosted over 4 years ago
As @emestabillo said you did a great work on the desktop version, it looks very nice.
These are the media queries I use in every solution (I think this will help you to create the mobile version):
- 0-600px (mobile)
- 600-900px (tab port)
- 900-1200px (tab land)
- 1200px (large screens)
Happy coding! Keep going!
0@linzhangcsPosted over 4 years ago@ovidiuantonio Hi, thanks for the helpful comment. I added the media queries. Happy coding to you too :)
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