Responsive testimonials grid section

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?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @BT453567
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
- @Glorit74
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); }
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