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

Grid, flex, mobiler first

cesar 490

@cyeguez

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I've just completed a front-end coding challenge from @frontendmentor! 🎉

You can see my solution here: https://www.frontendmentor.io/solutions

Any suggestions on how I can improve are welcome!

Community feedback

hitmorecode 6,230

@hitmorecode

Posted

Nice well done. There is an issue when going to mobile the circle is no longer a circle. On desktop is fine on mobile not. This problem is caused by margin conflict. Here is how you can fix this

.component__top {
  background: linear-gradient(var(--gradient1), var(--gradient2));
  border-radius: 0 0 40px 40px;
  display: flex;
  align-items: center;
  align-items: center;
  flex-direction: column;
  padding-top: 1rem; /* add this line */
}

.component__top__title {
  color: var(--Light-lavender);
/*   margin-block: 1.6rem 1.5rem; */ /* remove this line */
  font-weight: 500;
  margin-bottom: 15px; /* add this line */
}

.component__top__content {
  width: 80%;
  color: var(--Light-lavender);
  text-align: center;
/*   margin-bottom: 2.7rem; */ /* remove this line */
}

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