DEV Community

Soft Heart Engineer
Soft Heart Engineer

Posted on

Backlight in CSS

Check out this Pen I made!

Top comments (4)

Collapse
 
yaireo profile image
Yair Even Or

you should inherit the border-radius also.
please never user width: 100%; height: 100%; like this, but instead use inset: 0

Collapse
 
softheartengineer profile image
Soft Heart Engineer

Hi @yaireo, Thanks for the suggestions. pen is updated now.

Collapse
 
petecapecod profile image
Peter Cruckshank

Wow nice great effect!

Collapse
 
kartofelek007 profile image
kartofelek007

Add isolation: isolate to .container. z-index: -1 will cause the blur to be at the bottom of the layers. You don't want this