Posted By

kbrown on 08/16/12


Tagged

css bgcolor


Versions (?)

CSS - Split Color Background


 / Published in: CSS
 

URL: http://www.colorzilla.com/gradient-editor/#ff3236+50,7db9e8+50;Horizontal+split+bg

doesn't work in ie7/8

  1. background: #ff3236; /* Old browsers */
  2. /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  3. background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2ZmMzIzNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzdkYjllOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
  4. background: -moz-linear-gradient(-45deg, #ff3236 50%, #7db9e8 50%); /* FF3.6+ */
  5. background: -webkit-gradient(linear, left top, right bottom, color-stop(50%,#ff3236), color-stop(50%,#7db9e8)); /* Chrome,Safari4+ */
  6. background: -webkit-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* Chrome10+,Safari5.1+ */
  7. background: -o-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* Opera 11.10+ */
  8. background: -ms-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* IE10+ */
  9. background: linear-gradient(135deg, #ff3236 50%,#7db9e8 50%); /* W3C */
  10. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3236', endColorstr='#7db9e8',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */

Report this snippet  

You need to login to post a comment.