boxshadow-opacity-ref.html 245 B

12345678910111213141516171819
  1. <!DOCTYPE HTML>
  2. <style>
  3. body {
  4. background-color: green;
  5. }
  6. #thediv {
  7. width: 300px;
  8. height: 100px;
  9. position: absolute;
  10. top: 20px;
  11. left: 20px;
  12. opacity: 0.6;
  13. box-shadow: 3px 3px 2px rgb(255,0,0);
  14. }
  15. </style>
  16. <div id="thediv"></div>