Design comparison
Solution retrospective
1. How to use grid to layout a design
What challenges did you encounter, and how did you overcome them?Opacity setting of the font color seems not working for me. Just don't know why?
What specific areas of your project would you like help with?Opacity setting of the font color seems not working for me. Just don't know why?
Community feedback
- @BT453567Posted 8 months ago
Hello
With regards to the following:
color: rgba(var(--color-primary-very-dark-grayish-blue),0.7);
I do not believe this is working because the rgba function does not accept variables defined in hsl.
You could try and define the colour as follows with the opacity an use that:
--color-opacity70-very-dark-grayish-blue: rgba(72, 85, 106, 0.7);
Regards
0@lij110397Posted 8 months agoThanks for your suggestions! I believe that's why the opacity setting is not working for me!@BT453567
0 - @Glorit74Posted 8 months ago
It is an interesting question. I'm not sure, but I found that the color defined by the variable cannot be used together with the opacity. You should define opacity separately.
h3 { color: var(--color-primary-white); opacity: 0.1; font-size: 0.77rem; font-weight: var(--font-weight-regular); }
0@lij110397Posted 8 months agoThanks for the suggestion! I think that is the correct way! @Glorit74
0
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