I have the code for a web page, and I want to blur the background through a transparent div. I actually want to make the div semi-transparent.
I tried to add blur filter CSS to the div, but the result is that the text inside the div is also blurred, which is not what I want.
<body style="background-image: url('bg.jpg')"> <div> Some text </div> </body>
Try the following, using CSS's
backdrop-filter: blur
property, and changing theopacity
ofbackground-color
: