Design comparison
Solution retrospective
I had trouble aligning the icons and the text (ethereum and clock), I don't quite understand how to place them together, I put them inside a div, however I wasn't able to align them as smooth as I'd like. Any positive feedback is greatly appreciated, I'm just getting started.
Community feedback
- @juanmfretesPosted almost 3 years ago
You can use flexbox to make both <div> ("eth" and "time") flex containers and then use "column-gap" to space each icon from the <p>
Marked as helpful0 - @LithyiePosted almost 3 years ago
Hello,
For the icons, its possible to add them using pseudo-element :before to your <p> in your css.
This solution make them easier to place and considering those icons are only used for decoration purpose, it makes your html lighter. (others solutions are also viable tho)
Regards, Lty
Marked as helpful0
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