Desktop first design using HTML and CSS
Design comparison
Solution retrospective
Hello,
I know it's not responsive but do you have any advice to improve my solution and especially in terms of responsiveness?
Thank you in advance !
Community feedback
- @realsalePosted over 2 years ago
Yo! @Txrigxn,
Great job man, it's not bad at all.
In terms of responsiveness I recommend using:
@media
query as it allows you to addbreakpoints
which you can use to target specific screens, devices, dimensions, orientations etc. Using media queriesmobile first approach
when doing responsive web design, It is recommended to design the mobile first before moving on the larger devices(This will make the page display faster on smaller devices) How to write mobile first- proper use of
flexbox
, I've seen your design and you're usingflexbox
the wrong way, I recommend re-understand how this layout approach works. Beginners guide for css flexbox
You properly center your component, but in your component itself you should remove the
position: absolute
, You don't need that in there since you already centered your component and it just break your alignment in low screen sizes.Marked as helpful1@lenny-zanotelliPosted over 2 years agoHey @realsale !
Thank you very much for your help. I'll practice mobile first approach, it seems easier to do.
You are probably right about my flexbox approach haha
Thanks a lot for your ressources and your comment !
1@realsalePosted over 2 years ago@Txrigxn Yes following mobile first approach, you're on the right track.
Welcome man, glad you'll find it helpful
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