Design comparison
Solution retrospective
How do I have 50% width for the image and also keep it responsive? Also, is there any way I could have been more efficient with my css?
Any other feedback would be appreciated. Thanks a lot.
Community feedback
- @suvankarpradhanPosted over 3 years ago
Try this..... .main-box { position: relative; height: 100vh; padding: 10% } .main-box-inner { display: flex; flex-direction: row; } .left-box { background-color: hsl(244, 38%, 16%); display: flex; flex: 50%; flex-direction: column; justify-content: space-between; padding: 50px 60px; border-radius: 10px 0 0 10px; } .right-box { display: flex; background-color: hsl(277, 64%, 61%); flex: 50%; border-radius: 0 10px 10px 0; }
0@karanmishra0904Posted over 3 years ago@suvankarpradhan Thanks for the feedback. Will add this to my code and revert :)
0 - @atekronPosted over 3 years ago
I would use a separate css file for my styles, and I'd rather start my design from mobile version, just because it easier to scale up
0@karanmishra0904Posted over 3 years ago@atekron Thanks for the feedback. Will keep this in mind, going forward :)
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