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

Responsive testimonials grid section

lij110397 230

@lij110397

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

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

BT738844 600

@BT453567

Posted

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

lij110397 230

@lij110397

Posted

Thanks for your suggestions! I believe that's why the opacity setting is not working for me!@BT453567

0
Flóra 180

@Glorit74

Posted

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

lij110397 230

@lij110397

Posted

Thanks for the suggestion! I think that is the correct way! @Glorit74

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