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

@raven784

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 specific areas of your project would you like help with?

In the learning tag on the webpage, why am I not able to use the given yellow design color

Community feedback

P

@Bamo-D-Abdallah

Posted

You could remove the border property on the learning tag, and its color is rgb(244, 208, 78) but yours is set to rgb(228, 228, 0).

Some other notes:

  • Avoid using px, start using rem more and also em, %, vw, vh.
  • Don't use height, let the browser determine the height your content needs.
  • Start using CSS resets or normalizers.
  • You can start using CSS variables it makes.
  • Use display: block and max-width: 100% on your img to make it responsive.

Also using border-box is better than default which is content-box, you can set it up like this:

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

Marked as helpful

0

@raven784

Posted

@Bamo-D-Abdallah This was an eye-opener.

0

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