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

Recipe Page with a CUBE CSS twist

accessibility, cube-css
P
mci3x•100
@mci3x
A solution to the Recipe page 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?

I'm kind of proud of using these bad boy :D

.stack > * + * {
  margin-bottom: var(--s-32);
}

and I've made some progress with the way of selecting elements

.stack--sm > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

I'm also happy with my attempt of using CUBE CSS approach.

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

Styling table was tricky

When border-collapse: collapse is being used, all padding of <tr> breaks down.

I had to add padding to single <td>s

Also changing color of '<br />' is tricky

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

I'd like to know how I can make my code more in align with CUBE CSS methodology

And how to properly style <br />

Is this going to work on Safari?

ul li::marker {
  color: var(--brown-800);
}
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 mci3x'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
  • Use cases

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