Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Recipe page | Custom properties

dkaffes 140

@dkaffes

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I used custom properties to handle two different margin-bottom values:

  --marg-bott-l: 1.5rem;

I used these two values for many CSS declarations.

Is there any other more efficient way to declare the same margin-bottom value to multiple elements?

In terms of accessibility, are there any important missing bits?

Community feedback

dkaffes 140

@dkaffes

Posted

--marg-bott-s: 1rem; --marg-bott-l: 1.5rem;

0

Please log in to post a comment

Log in with GitHub
Discord logo

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