QrCode Built with: Semantic HTML ,HTML classes and span
Design comparison
Solution retrospective
I am proud to finish and go live with my first HTML CSS project
What challenges did you encounter, and how did you overcome them?MediaQuery
What specific areas of your project would you like help with?MediaQuery
Community feedback
- @GhermanClaudiuPosted 6 months ago
Thank you @kodan96 for your feedback, very helpful and instructive
I will put a new version today
0 - @kodan96Posted 6 months ago
hi there! 👋
Changing your layout depending on the screen size can be achieved with @media queries in your CSS file. After defining a
@media
querie you can make changes on the layout you made before. For example:@media screen and (min-width: 768px) { h1 { font-size: 3rem; } }
would change the
h1
element'sfont-size
to3rem
, but only if the screen size is 768px or more. Below that value your original properties gets applied to the page.Also, if you apply
flex-direction: column;
to your.container
, your elements within it will stack on each other vertically, not horizontally and your layout will look more similar to the design.Hope this was helpful 🙏
Good luck and happy coding!
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