Advertisement
Guest User

Untitled

a guest
May 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. .class {
  2. background-image: url('/path/to/image.png');
  3. background-image: -webkit-radial-gradient(top, ellipse cover, #f9f9f9 0%,#eaeaea 100%);
  4. }
  5.  
  6. <div class="background-gradient">
  7. <div id="first-background"></div>
  8. </div>
  9.  
  10. .background_gradient {
  11. position: relative;
  12. }
  13. .background_gradient:before {
  14. content: "";
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. height: 100%;
  20. z-index:-1;
  21. background: -webkit-radial-gradient(top, ellipse cover, #f9f9f9 0%,#eaeaea 100%);
  22. }
  23. #first_image {
  24. background: url(images/img01.png);
  25. }
  26. #second_image {
  27. background: url(images/img02.png);
  28. }
  29. #third_image {
  30. position: relative;
  31. background: url(images/img03.png);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement