2011-11-17, 04:12 AM
I'd like to add a gradient color as my Panel element on the theme. My current panel code is:
Using an online gradient generator, I generated the following code for my gradient:
Can anyone explain how I merge this code into the panel element so as to display this color?
#panel {
background: #efefef;
color: #000000;
font-size: 11px;
border: 1px solid #D4D4D4;
padding: 8px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
Using an online gradient generator, I generated the following code for my gradient:
background: #f0b7a1; /* Old browsers */
background: -moz-linear-gradient(top, #f0b7a1 0%, #f0b7a1 8%, #8c3310 21%, #8c3310 47%, #752201 82%, #bf6e4e 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0b7a1), color-stop(8%,#f0b7a1), color-stop(21%,#8c3310), color-stop(47%,#8c3310), color-stop(82%,#752201), color-stop(100%,#bf6e4e)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f0b7a1 0%,#f0b7a1 8%,#8c3310 21%,#8c3310 47%,#752201 82%,#bf6e4e 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f0b7a1 0%,#f0b7a1 8%,#8c3310 21%,#8c3310 47%,#752201 82%,#bf6e4e 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f0b7a1 0%,#f0b7a1 8%,#8c3310 21%,#8c3310 47%,#752201 82%,#bf6e4e 100%); /* IE10+ */
background: linear-gradient(top, #f0b7a1 0%,#f0b7a1 8%,#8c3310 21%,#8c3310 47%,#752201 82%,#bf6e4e 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0b7a1', endColorstr='#bf6e4e',GradientType=0 ); /* IE6-9 */
Can anyone explain how I merge this code into the panel element so as to display this color?