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 website and app design

Shikamaru007โ€ข 170

@Shikamaru007

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


making the layout responsive was a challenge for me as i just made a layout for web and mobile only but still doesnt preview as it should even though it has been created for mobile as well.

Community feedback

@MelvinAguilar

Posted

Hello there ๐Ÿ‘‹. Good job on completing the challenge !

I have other suggestions about your code that might interest you.

  • You should not use inline-CSS because it is not a good practice. Instead, you should use only the external stylesheet to style your page. By doing this, you will be able to have a better organization of your code and will be able to understand it better.
  • Consider adopting a Mobile First approach in your next project. This means designing for the smallest screens first and then scaling up as needed. This helps to create a more user-friendly and accessible experience for all users.
  • float: left is a somewhat outdated approach for creating two columns and can lead to layout issues. It's recommended to use flexbox and maintain widths or directly use the grid layout, which can generate two columns with just a line of code.
.card {
  /* height: 60%; Remove this*/
  /* width: 45%;  Remove this*/
  box-shadow: 0 0 50px hsl(221, 100%, 96%);
  border-radius: 20px;
  max-width: 600px;
  display: flex;
}
  • Use min-height: 100vh instead of height. Setting the height to 100vh may result in the component being cut off on smaller screens, such as a mobile phone in landscape orientation.

I hope you find it useful! ๐Ÿ˜„ Above all, the solution you submitted is great!

Happy coding!

Marked as helpful

0

Shikamaru007โ€ข 170

@Shikamaru007

Posted

I really appreciate your feedback. ill make the changes @MelvinAguilar

1
Daniel ๐Ÿ›ธโ€ข 44,230

@danielmrz-dev

Posted

Hello @Shikamaru007!

Your solution looks great!

I have a couple of suggestions for improvement:

  • Don't use percentage values for height or width. It can cause bugs and make your card too big or too small depending on the screen size.

  • For height. Just add the content, and let it adapt.

  • For width, it's nice to add a max-width fixed value (like px) to prevent your element from overgrowing.

  • Also, for semantic purposes, replace your div.card with main.card. This won't create visual impact but they make your HTML code more semantic and improve SEO optimization as well as the accessibility of your project.

I hope it helps!

Other than those details, you did an excelent job! ๐Ÿ˜Š

Marked as helpful

0

Shikamaru007โ€ข 170

@Shikamaru007

Posted

Thank you so much for this. I'll make the changes @danielmrz-dev

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