Advertisement
trentjs

Two Gradients in One Div Css

Jan 5th, 2022
1,215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.46 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style>
  4.  
  5. body{font-family: Arial, Helvetica, sans-serif;}
  6.  
  7. .divBg {
  8.   background-image: linear-gradient(#cc0000, #cc0000),linear-gradient(#dedede, #999999); /*layer order = top, 2nd, 3rd etc,,,*/
  9.   background-size: 100% 3px, 100% 100%; /*width height*/
  10.   background-position: bottom left, top left;
  11.   background-repeat: no-repeat, no-repeat;
  12.   padding:1em;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17.  
  18. <div class="divBg">
  19.   Some Text
  20. </div>
  21.  
  22. </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement