Forums

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
    Posts
  • #259433
    ChristianSirolli
    Participant

    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.

    https://codepen.io/ChristianSirolli/pen/OjEogR

    #259435
    rkieru
    Participant

    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:

    https://stackoverflow.com/questions/9649706/css3-box-shadow-linear-gradient

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