Design comparison
Solution retrospective
Hi all, I am wondering if there is a better way to position the ratings and testimonials than adding margin to each one, if anyone has any input on that I'd really appreciate it. Also any other general comments and feedback would be great. Thanks!
Community feedback
- @tedikoPosted almost 4 years ago
Hello, Nicole! ๐
Congratulations on finishing another challenge! Your solution responds quite well and looks nice. What I can suggest is:
- You repeat your HTML code with stars images which is unnecessary. Find the way to use only one star image for a
.stars
etc. You can do it easily by usingbackground-repeat
approach in your css. - Yes, there is a better solution to position your ratings. One of them is to remove
margin-left
from all review-boxes then to.ratings
div addpadding-left: 2rem; max-width: 550px; width: 100%;
(you'll work on them later, i just put them to show you how it works). Next, add to.report-rating
divalign-self: center
and to.besttech-rating
divalign-self: end;
. Lastly addwidth: 100%
to.review-box
class.
This is my approach to this challenge. Like most people here, I also learn but maybe you will find something good for yourself.
Good luck with that, have fun coding! ๐ช
1@nicole-tuznikPosted almost 4 years ago@tediko thank you, I can't believe I forgot I could use the align-self property to do the same thing, that's so much better. I really appreciate all your help!
0 - You repeat your HTML code with stars images which is unnecessary. Find the way to use only one star image for a
- @ApplePieGiraffePosted almost 4 years ago
Hey, Nicole! ๐
Nice job on this challenge! Your solution looks good and responds nicely! ๐
One tiny suggestion in addition to tediko's helpful feedbackโthere's rather a lot of space between the testimonials and the bottom of the page in the desktop layout. Allowing the height of the
.testimonial-cards
container to be determined according to its content and addingmin-height: 100vh
to thebody
should help decreases that space and make your solution fit the viewport a little more snuggly! ๐Keep coding (and happy coding, too)! ๐
0@nicole-tuznikPosted almost 4 years ago@ApplePieGiraffe thanks so much, I hadn't noticed the spacing and it looks a lot better now. I appreciate your help!
0
Please log in to post a comment
Log in with GitHubJoin 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