Advanced Search

Results 1 to 2 of 2

Thread: Apply a gradient to a box-shadow?

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Apply a gradient to a box-shadow?

    Hi,

    I read Dynamic Drive articles about CSS3 gradient colors and box-shadow.

    I was wondering: is it possible and if yes, how, to apply a gradient to a box-shadow?

    eg: the gradient box-shadow would go from solid black to solid white
    or, the gradient box-shadow would go from solid black to almost transparent

    Pure CSS if possible, I would like to avoid using JavaScript.

    Thanks,
    Larry

  2. #2
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    The "gradient" effect will depend upon your box-shadow settings. Also note, it's CSS3.

    Here's a good article for you:
    http://www.css3.info/preview/box-shadow/

    dbc

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •