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

responsive landing page using css flex-box

@owocoded

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Give the img a max-width of 100% , mix blend-mode: multiply and opacity 0f 0.7, there is no need to give .desktop and mobile a fixed width and height value. to make each visible declare display: block. e.g :

img{ 
 max-width:100%;
  mix-blend-mode: multiply
 opacity: 0.7; or opacity: 0.8;
}

 in the mobile design:

.desktop{
  display: none;
 }
.mobile{
 display: block;
}

in the desktop design:

.mobile{
display: none;
}
.desktop{
display:block;
}

Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units watch this https://youtu.be/N5wpD9Ov_To

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

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