@GhermanClaudiu
Posted
Thank you @kodan96 for your feedback, very helpful and instructive
I will put a new version today
Submitted
@GhermanClaudiu
What are you most proud of, and what would you do differently next time?
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
@GhermanClaudiu
Posted
Thank you @kodan96 for your feedback, very helpful and instructive
I will put a new version today
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's font-size
to 3rem
, 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!
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