Design comparison
Solution retrospective
I'd appreciate feedback on my @media
rules, as although everything is working as it should across screen widths, I think the code could be simplified.
Also, for the staggering of the 5 star review boxes, I just added nth-of-type
rules with margin and negative margin on either side. I assume this should instead be done with a position
rule or something like that instead. The code looks like:
nth-of-type(2) {
margin-right: 40px;
margin-left: -40px
}
Similarly for the bottom 3 testimonial boxes.
Any other feedback is welcome.
Community feedback
- @kodan96Posted 6 months ago
hi there! 👋
I guess the easiest solution would be using
position: relative;
on the elements and apply aleft
offset on them to move them from the original position. Since there's no other elements that would need the original space it shouldn't cause any issues.Hope this helped🙏
Good luck and happy coding! 💪
Marked as helpful1
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