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

Result-summary-component

@manosatpathy

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


Kindly suggest to me how to make it mobile-responsive. I'm just fed up with making it mobile-responsive. please help so that I can correct it.

Community feedback

P

@AssSam7

Posted

Hello Manoranjan,

Good work, Keep it up! I see you have asked how to approach mobile responsiveness. Before designing any layout, focus on the responsive design approach first like desktop-first or mobile-first. Accordingly, use the CSS3 concepts, relative units, etc for the responsiveness based on the breakpoints for mobile, tablet, large screens, etc. Here is one small trick that can help a lot in responsiveness.

Using the rem units

html { 
  font-size: 62.5%; /* Making 1px=10px from the base 16px */
}

By default 1rem=16px

The above code snippet makes 1rem=10px that can help for easier calculation as suppose you want to apply 45px of padding, it can be done easily like this

padding: 4.5rem

As we are using the rem which is a relative unit, we can easily scale it in other devices like this

@media screen and (max-width: $bp-mobile) {
    font-size: 50%;
  }

Previously 1rem=10px is now in lower resolution devices such as mobile, with the above one line it is changed to 8px

This is one of the ways that help in responsiveness.

Marked as helpful

0

@manosatpathy

Posted

Thank you @AssSam7 I value the help you've given me.

0
P
visualdennis 8,375

@visualdenniss

Posted

Hey there,

good work. Don't give up. Firstly simply change 130vh to 100vh for the body. There is no need to go 130vh. 100vh means entire screen viewport height.

Then simply add a media query.

@media only screen and (max-width: 550px or in em) { .container { flex-direction: column } }

then simply remove the children elements fixed widths, make them 100% if needed. Also avoid giving fixed heights to text containing elements as this causes some accessibility issues.

Hope you find this feedback helpful!

Marked as helpful

0

@manosatpathy

Posted

Thank you so much @visualdenniss for your help. I am very grateful for your time.

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