Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 7 months ago

Back to Basics - Feature Section with plain CSS

accessibility
Theo Harris•360
@Theosaurus-Rex
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Overall, pretty happy with this as it's the first time I've written something with pure CSS in a long time. I feel like the semantics in the markup are pretty solid - images are purely decorative so have handled this with a blank alt attribute, and have utilised sections to semantically group each chunk of information.

What challenges did you encounter, and how did you overcome them?

Initially, I tried using border-top to add the coloured stripes to the top of the cards, but found that doing this made it curve with the border-radius applied to the card itself. I ended up using pseudo elements to stop this from happening while avoiding shoving pointless divs into the DOM.

What specific areas of your project would you like help with?

If there is anything I have done redundantly in CSS, or any way I could improve how it is written for readability, please let me know!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Theo Harris's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License