The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Radial Gradient in a Box Shadow?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #259433

    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:

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.