Submitted 9 months ago
Responsive Results Page with hideous CSS to add icons and dynamic data
@PraveenKum11
Design comparison
SolutionDesign
Solution retrospective
Wasn't able to find a neat way to add ::before icons using JS so had to resort to this ugly CSS:
/* Fourth Row */
.summary .row:nth-child(4) {
background-color: hsl(var(--raw-clr-primary-cobalt-blue), 5%);
}
.summary .row:nth-child(4) .row-title {
color: var(--clr-primary-cobalt-blue);
}
.summary .row:nth-child(4) .row-title::before {
content: url(./assets/images/icon-visual.svg);
display: inline-block;
padding-right: 10px;
vertical-align: middle;
}
Will check Kevin's video for the same, if anyone has any suggestion please let me know!
Community feedback
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