Responsive page with flexbox and floats
Design comparison
Solution retrospective
Feel free to leave any suggestion.
PS: This was the last Newbie Free challenge. So from now on I'll be making the Junior ones :D
Community feedback
- @kens-visualsPosted about 3 years ago
Hey @fvaldes0109 👋🏻 it's me again 😅
I just have some suggestions for the background image and some other things.
- I just added a couple of things to make the background image more responsive, and here's the code:
body { background-image: url('./images/bg-desktop.svg'); background-color: hsl(257, 40%, 49%); background-repeat: no-repeat; background-size: cover; min-height: 100vh; }
- Well, I don't want to disappoint you, but using
float
in modern web development is discouraged. Developers used it way back, when there was noflexbox
andgrid
to make some layouts. But building a responsive website withfloat
s is a real pain. It's cool that you not only put the layout together, but also managed to make it responsive. However, at the end of the day, I'd still suggest practicing new technologies more, such asflexbox
andgrid
.
I hope this was helpful 👨🏻💻 Congrats on finishing the last project, there are many more cool projects coming, I'm pretty sure you're going to make them as good as these. Cheers 👾
Marked as helpful1@fvaldes0109Posted about 3 years ago@kens-visuals Hi, thanks for the advice! I ended up using
float
because when I triedflexbox
, the image only shrank on it x-axis, messing up with its aspect ratio. I already replaced it withflexbox
and fixed the issue. Seems like I only needed to wrap theimg
inside adiv
XD.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