Design comparison
SolutionDesign
Solution retrospective
Tips on how to incorporate mobile design
Community feedback
- @vanzasetiaPosted over 3 years ago
👋Hi Srijan1972! My name is Vanza!
I have some feedback on this solution:
- First, you don't need JavaScript for this challenge and also the way to link
js
is not like this:
<link rel="script" href="main.js">
- Instead you put your
script
tag right above the ending body tag. For some reason I can't show you the script tag here, but you can googlehtml script tag
. - To do mobile layout you can just set
float: none
or try to Google it first. But, there is a better way rather than usefloat
. Try to use flexbox or grid, it will make this process much easier. - In this case, you don't need to set a height on your
div
, since setting height means not allow the default behavior, which is already responsive.
That's it! Hopefully this is helpful!
Marked as helpful0 - First, you don't need JavaScript for this challenge and also the way to link
- @aUnicornDevPosted over 3 years ago
Hi Srijan,
You have a good grasp of laying out... One better way of doing this is using
flexbox
. You could easily put them in single row in desktop and using a single statement can change it to single column multi row layout.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