Four Card Feature Section [Grid + SASS + Dark Mode JS]
Design comparison
Solution retrospective
Hello!
Another challenge with added Dark Mode JS! Straightforward challenge, but aligning images to the bottom right corner was a bit of a challenge. I used position: absolute
with bottom: 30px
and top: 30px
to be properly aligned with the padding: 30px
given to the .card
. Let me know if there's a better way to do this!
Thank you for reading, feedback is appreciated!
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi Hussain Hussain, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:
<h1 class="title">Reliable, efficient delivery</h1> <h1 class="following">Powered by Technology</h1>
The most appropriate in this case would be just an
h1
tag! containing the two contents, to make them break a line, we can use a max-width, and for the styling we can use a span element with the content that will be changed!Avoid using
px
, If your web content font sizes are set to absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. if you want to keep using px for development and then format the whole code to rem, you can use this vscode extension: px to remThe rest is great!
I hope it helps... 👍
Marked as helpful1@LysitheaDarkKnightPosted almost 2 years ago@AdrianoEscarabote thank you for the feedback! I was wondering about when to use rem for the longest time, I'll definitely keep that in mind!
1
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