Guest User

Untitled

a guest
Dec 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. TYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. #grad1 {
  6. height: 200px;
  7. background: -webkit-linear-gradient(red, blue); /* For Safari 5.1 to 6.0 */
  8. background: -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */
  9. background: -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */
  10. background: linear-gradient(red, blue); /* Standard syntax (must be last) */
  11. }
  12. </style>
  13. </head>
  14. <body>
  15.  
  16. <h3>Linear Gradient - Top to Bottom</h3>
  17. <p>This linear gradient starts at the top. It starts red, transitioning to blue:</p>
  18.  
  19. <div id="grad1"></div>
  20.  
  21. <p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
  22.  
  23. </body>
  24. </html>
  25.  
  26.  
  27.  
  28. <!DOCTYPE html>
  29. <html>
  30. <head>
  31. <style>
  32. #grad1 {
  33. height: 150px;
  34. width: 200px;
  35. background: -webkit-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Safari 5.1 to 6.0 */
  36. background: -o-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Opera 11.6 to 12.0 */
  37. background: -moz-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Firefox 3.6 to 15 */
  38. background: repeating-radial-gradient(red, yellow 10%, green 15%); /* Standard syntax (must be last) */
  39. }
  40. </style>
  41. </head>
  42. <body>
  43.  
  44. <h3>Repeating Radial Gradient</h3>
  45.  
  46. <div id="grad1"></div>
  47.  
  48. <p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
  49.  
  50. </body>
  51. </html>
  52.  
  53.  
  54. <!DOCTYPE html>
  55. <html>
  56. <head>
  57. <style>
  58. #grad1 {
  59. height: 150px;
  60. width: 200px;
  61. background: -webkit-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Safari 5.1 to 6.0 */
  62. background: -o-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Opera 11.6 to 12.0 */
  63. background: -moz-repeating-radial-gradient(red, yellow 10%, green 15%); /* For Firefox 3.6 to 15 */
  64. background: repeating-radial-gradient(red, yellow 10%, green 15%); /* Standard syntax (must be last) */
  65. }
  66. </style>
  67. </head>
  68. <body>
  69.  
  70. <h3>Repeating Radial Gradient</h3>
  71.  
  72. <div id="grad1"></div>
  73.  
  74. <p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
  75.  
  76. </body>
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment