- This topic is empty.
- The forum ‘CSS’ is closed to new topics and replies.
I am playing around with radial-gradient and box-shadow. Instead of a color for box-shadow, I tried to use radial-gradient but it is not working. Any ideas as of why it doesn’t work and/or how I can get it to work? I am trying to make the in the morning. Here is a pen that has it.
It’s not working because
box-shadow does not accept that sort of complex declaration. If you need to use that CSS you’ll need to rely on a HEX value, RGB/RGBA, HSL, etc.
There are workarounds on StackOverflow that might pertain to your usage wants though: