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

FLEXBOX|GRID

i_d_s_lβ€’ 270

@ilvdrskn

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Redid the previous solution using the GRID property. As an example, I took the solution of @carniel-carl.

Community feedback

@VCarames

Posted

Hey there! πŸ‘‹ Here are some suggestions to help improve your code:

  • It is best practice βœ… to use, classes for styling purposes, while using ids solely for JavaScript.
  • Remove all br elements you added , they are being used incorrectly ❌ and not needed for this challenge.
  • This challenges requires the use of two images πŸŽ‘ at different breakpoints. ⚠️ The picture element will facilitate this.

Syntax:

  <picture>
    <source media="(min-width: )" srcset="">
    <img src="" alt="">
  </picture>

More Info: πŸ“š

https://www.w3schools.com/html/html_images_picture.asp

  • For improved accessibility πŸ“ˆ for your content, it is best practice to use em for media-queries. Using this unit gives users the ability to scale elements up and down, relative to a set value.
  • Implement a "Mobile First" approach πŸ“± > πŸ–₯

Mobile devices are now the dominant πŸ‘‘ way in which people browse the web, it is critical that your website/content looks perfect on all mobile devices.

More Info: πŸ“š

Mobile First

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! πŸŽ†πŸŽŠπŸͺ…

Marked as helpful

1

Nelsonβ€’ 2,380

@nelsonleone

Posted

@vcarames nah.....since it seems your soul is clung to this particular badge , you can have it , just want one .

0

@VCarames

Posted

@nelsonleone

The badges are meaningless…

Believe it or not…. I have no interest in the badges or ranking system (honestly, I wish they weren’t part of the FEM site) my only interest is helping others grow and make the learning process easier (hence why I provide all the links to where I learned the materials on my feedbacks).

This a learning community (not social media) so I think it’s best to move on as professional and continue helping the FEM community.

Happy Coding! πŸŽ†πŸŽŠπŸͺ…

0
Hassia Issahβ€’ 50,830

@Hassiai

Posted

Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here

For the color of the image, give .picholder a background-color of soft-violet and add object-fit: cover; mix-blend-mode: multiply and opacity: 0.8 to the img .

.picholdet{
background-color: hsl();
}
img{
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
opacity: 0.8;
}

In the media query increase the width value of .cardholder.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

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