Page Widget How to - background: rgba(255, 255, 255, 0.5);








Question

We would like to know how to background: rgba(255, 255, 255, 0.5);.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from w w w  .j  a  v  a2 s.  c o m-->
  background: rgba(255, 255, 255, 0.5);
}

body {
  background: #000;
}
</style>
</head>
<body>
  <div>BlahBlahBlah</div>
</body>
</html>

The code above is rendered as follows: