Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog preview card

@NateDaveHill

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud of getting to algin some of the text elements with other elements like the img icon in the left bottom corner to be centered and also getting to have it be a bit more interactive compared to the first project.

What challenges did you encounter, and how did you overcome them?

One challenge was to get the text aligned with some of the other elements like the yellow box in the top left corner or the img icon in the bottom left corner

What specific areas of your project would you like help with?

overall what is meant with the mobile and desktop versions and how to really get that set up.

Community feedback

P
Koda👹 3,810

@kodan96

Posted

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.

Hope this was helpful 🙏

Good luck and happy coding!

Marked as helpful

1

@NateDaveHill

Posted

@kodan96 that’s awesome! Thank you, will give this a try ! 🙏

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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