/ Published in: CSS
doesn't work in ie7/8
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
background: #ff3236; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2ZmMzIzNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzdkYjllOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); background: -moz-linear-gradient(-45deg, #ff3236 50%, #7db9e8 50%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right bottom, color-stop(50%,#ff3236), color-stop(50%,#7db9e8)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* Opera 11.10+ */ background: -ms-linear-gradient(-45deg, #ff3236 50%,#7db9e8 50%); /* IE10+ */ background: linear-gradient(135deg, #ff3236 50%,#7db9e8 50%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3236', endColorstr='#7db9e8',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */
URL: http://www.colorzilla.com/gradient-editor/#ff3236+50,7db9e8+50;Horizontal+split+bg