Latest solutions
Mobile-first React Coffeeroasters site
#react#react-router#sass/scss#accessibilitySubmitted about 3 years ago
Latest comments
- @A-shir1Submitted over 3 years ago@spencerrundePosted over 3 years ago
Hi Mohammad,
I just completed this challenge a couple days ago. I believe it is best to usually start with the mobile layout, and then use a media query for larger screens. Typically, you can make the necessary changes without writing too much css. For my try at it, I mostly just had to change the
flex-direction
inside of the card torow
so the input and output boxes were side by side, and change mygrid
layout for the tip buttons from 2 columns to 3.Marked as helpful1 - @Cruse180795Submitted over 3 years ago@spencerrundePosted over 3 years ago
Hello Ryan,
Good job on the challenge! The most likely reason for the comparison looking slightly off is just minor differences in margin and padding styles, along with anything else relating to size. Don't worry about making it look completely identical, unless you're going for a pixel-perfect recreation. The only big difference I notice is that your "Learn More" buttons have a bigger
margin-top
than in the design. Nothing wrong with putting your own spin on it though, and I do like how the buttons look at the bottom of the cards instead of directly below the text.Marked as helpful0 - @wllyvxSubmitted over 3 years ago@spencerrundePosted over 3 years ago
Hello Willy,
To center the container class vertically, you can remove the top and bottom padding from the body class. Then, add
justify-content: center;
to the main class. Looks great!Marked as helpful0 - @sicklexSubmitted over 3 years ago@spencerrundePosted over 3 years ago
Hey Claydson!
To stop the background image from repeating, add
background-repeat: no-repeat;
to your stylesheet, in your body tag. There are other properties you could try out too, such asbackground-size
.Marked as helpful1