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

Profile Card Component

Ola White 160

@whitesoftx

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedbacks will be appreciated.

Community feedback

@zenab12

Posted

Hey @Ola , Congratulations for completing this challenge

My suggestions

  • use unordered list instead many divs to make it more semantic :

instead of this:

<div class="stats-card">
        <div class="stats-content">
          <p>80K</p>
          <span>Followers</span>
        </div>
        <div class="stats-content">
          <p>803K</p>
          <span>Likes</span>
        </div>
        <div class="stats-content">
          <p>1.4K</p>
          <span>Photos</span>
        </div>
      </div>

use this

<ul class="stats-card">
  <li>
  <p>80K</p>
  <span>Followers</span>
  </li>
  <li>
     <p>803K</p>
     <span>Likes</span>
  </li>
  <li>
      <p>1.4K</p>
      <span>Photos</span>
  </li>
</ul>

  • don't use height or width but use min-height and min-width instead to make it more responsive .to avoid wrap content outside card if it viewed in small screen

You make clean code ,semantic and responsive so Awesome and Keep Coding 💻😊

Marked as helpful

1

@jesufemigan

Posted

Awesome work! You can add letter spacing to the span tag in the "stats-content" class and increase the font-size

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