how to blur the background image only in css

Tammy

Hi i am trying to blur the background image but i think its lacking in doing so. Any help over it will boost my energy for it. Thanks

This my CSS

html {
  position: relative;
  min-height: 100%;
  max-width:  100%;
   background: url(img/rsz_1spring.jpg);
   background-repeat: no-repeat;
   -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
 max-width: 100%;
    overflow-x: hidden;

}

I am trying to apply this but it blur all my webpage instaed of background image only.

-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);

Thank you.

Kan412

If you are applying blur to <html> then it will blur your webpage.

Instead of adding background to <html> You need to create another <div> with in <body> with size to that of webpage and add blur to it.

Example

body {
  font-family: "Arial";
  color: #fff;
}

.page-bg {
  background: url('http://www.planwallpaper.com/static/images/general-night-golden-gate-bridge-hd-wallpapers-golden-gate-bridge-wallpaper.jpg');
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
<h1>
This is a title
</h1>

<div class="page-bg">
</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to blur only background and not content in Ionic/CSS

From Dev

CSS: How to blur background image within the div?

From Dev

CSS: How to blur background image within the div?

From Dev

css blur technique only for the background

From Dev

CSS blur on background image but not on content

From Dev

css tricks for background image blur

From Dev

Blur a part of the background image css

From Dev

How to blur the div below the section with CSS 3 without background image?

From Dev

Blur the edges of an image or background image with CSS

From Dev

How to blur background img - css?

From Dev

<div> blur of part of Background image with css

From Dev

Css blur on background image :hover but not on text

From Dev

How to make this image blur with css

From Dev

How to blur background image on hover but not the text

From Dev

How to make this image blur with transparent dark background

From Dev

blur without background image

From Dev

CSS Blur background issue

From Dev

Is it possible to blur only specific part of the image using CSS filter ?

From Java

Stretch and scale a CSS image in the background - with CSS only

From Dev

How do I blur the background only and not the divs under it?

From Dev

Blur part of an image with CSS

From Dev

How to remove white border from blur background image

From Dev

How can I blur the "repeated" part of background image?

From Dev

How can I blur the "repeated" part of background image?

From Java

Blur Background When Popup Image

From Dev

Blur effect on window background image

From Dev

Blur effect on image as a window background

From Dev

Blur a specific portion of a background image

From Dev

CSS blur, borders blend with background

Related Related

HotTag

Archive