CSS Property Value How to - filter: blur(5px);








Question

We would like to know how to filter: blur(5px);.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#image {<!-- w  ww .  j  a  v  a 2s  . co m-->
  filter: blur(5px);
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  margin: -1px;
  padding: 1px;
}

#container {
  width: 222px;
  height: 179px;
  overflow: hidden;
}
</style>
</head>
<body>
  <div id="container">
    <img id="image"
      src="http://placehold.it/200x200">
  </div>
</body>
</html>

The code above is rendered as follows: