How to blur background image in html. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
25th Jun 2023, 2:23 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
10 Answers
+ 6
You should be able to filter And blur inside the css as filter: blur(2px);   -webkit-filter: blur(2px); But it doesn't seem to be working
25th Jun 2023, 3:05 AM
BroFar
BroFar - avatar
+ 5
Koli will this work for you ? <img src="http://www.sololearn.com/uploads/slider/1.jpg" class="blured"> .blured { -webkit-filter:blur(2px); }
25th Jun 2023, 2:44 AM
BroFar
BroFar - avatar
+ 5
Thank for your suggestion. 👌
25th Jun 2023, 3:07 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 5
Thanks you all for give me suggestion. 🥲🥲
26th Jun 2023, 9:16 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 3
It's a simple image but I want to blur background image. Like the link above in the question can I blur it.
25th Jun 2023, 2:46 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 2
Koli try taking a simple image element and using it as a background by positioning it under rest of elements. This way: https://code.sololearn.com/Ww2LwlXw1Iwt/?ref=app
26th Jun 2023, 2:44 AM
Ney Cordovez
Ney Cordovez - avatar
+ 2
Dian Lerry Gabatin Lizardo (Dian) if you apply the filter blur property to an element you won't set it just for that element, but for all it's content, so won't be just background that gets blurred but all content and element inside and it will be unreadable. Maybe, did you used IA to find that answer?
26th Jun 2023, 11:37 PM
Ney Cordovez
Ney Cordovez - avatar
+ 1
Try this in your CSS, it will make your background blured: filter: blur(8px); -webkit-filter: blur(8px); Let me know if it worked or not.
26th Jun 2023, 9:13 AM
Danish Zubair
Danish Zubair - avatar
0
Hi
26th Jun 2023, 10:13 AM
Mister Quvonchbek
Mister Quvonchbek - avatar