Design comparison
Solution retrospective
I had difficulty flipping the image and text in the mobile responsiveness. Please how do I achieve that?
Community feedback
- @palgrammingPosted over 3 years ago
you should play Flexbox Froggy https://flexboxfroggy.com/
then you can do Grid Garden https://cssgridgarden.com/
1 - @pikapikamartPosted over 3 years ago
Hey, good job on this one. Both layout in desktop and mobile is fine, just that reversed order.
To fix that, in the mobile state, in your
row
selector, instead of usingflex-direction: column
useflex-direction: column-reverse
. This will reverse the order of the elements inside the element.Other suggestions would be that:
-
I think you are using the wrong font in here. Maybe checking if you are rendering the right.
-
To get that purplish effect, since you are using the image as
img
, you could add a background-color to theimage
selector, addbackground-color: rgb(170, 92, 219)
this is the purplish one, then adjust the opacity of theimg
tag inside it. Adjust until you get the desired color effect. -
Adjust some spacing. You could see that is this huge white space on the left container right, between the 3 list at the bottom and the p tag above it. Adjusting them will be awesome.
-
Resizing your layout, the image somehow doesn't respond very well. To address this, simply add
height: 100%; object-fit: cover;
This will allow the image to take the full height of its parent and the object-fit will make the image somehow responsive based on the size (really thanks to APG^).
Aside from those, awesome job, if you need more help just drop your query here okay^
0 -
- @jamiem89Posted over 3 years ago
Hey Edosa.
I achieved it by using flexbox, and setting the order when switching to the desktop view.
Hope this helps!
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