I want to create a background shadow that appear like the green one bellow on attached screen shot.. how can i achieve it with CSS
?
I want to create a background shadow that appear like the green one bellow on attached screen shot.. how can i achieve it with CSS
?
3
Answers
so you have to apply box-shadow property to the element like
I think you’re referring to
radial-gradients
, and adding these in CSS is pretty easy, but for the specific style, you’d need some additional styles as well…These are what I’ve used to recreate your design:
::before
and::after
)absolute
andrelative
)This is the recreation:
Additionally, there appears to be some gradient on the text itself from light gray to a darker shade, this can be achieved in the following way:
Based on the image that you attached, you can get the result by creating a layout on the container using a pseudo-element
::before