Stats preview card component using photoshop and flexbox
Design comparison
Solution retrospective
That was hard, I didn't know how to put the color above the image so I used Photoshop, any tips to improve my code? The most difficult part for me was when I have to make a text above another in a single line. The stats part.
Community feedback
- @TemceoPosted about 1 year ago
This is a decent effort. This article will give you some tips on how you can add an overlay using CSS - https://tympanus.net/codrops/2013/11/07/css-overlay-techniques/
Regarding adding text over another, you can place the stats in a span and then in css display the span as a block (display: block) to force the following text into the line below
<div> <p><span>10k+</span>companies</p> <p><span>314</span>templates</p> <p><span>12m+</span>queries</p> </div>Marked as helpful0@StealthyScripterPosted about 1 year ago@Temceo that's very interesting, thanks I'll bookmark it
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