Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cross browser gradient issue

#PEOPLE {
    text-shadow:#f2f2f2 0px 1px  0px;
    color:#333;
    margin-left: 20px;
    background-color: #F0F0F0;
    border-radius: 1em 1em 1em 1em;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    font-family: "helvetica neue", helvetica, arial, sans-serif;

    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8f8f8', endColorstr='#f1f1f1'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#f1f1f1)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #f8f8f8,  #f1f1f1); /* for firefox 3.6+ */
    margin-top: 25px;
    margin-right: 10px;
    text-align: left;
    height: 235px;
}

Works perfect on chrome & firefox but not in ie8. i didnt try another browser. i need your help

like image 731
hosaf Avatar asked Mar 23 '26 18:03

hosaf


1 Answers

Can you try:

  background-color: #f8f8f8;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f1f1f1)); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient(top, #f8f8f8, #f1f1f1); /* FF3.6 */
  background-image:     -ms-linear-gradient(top, #f8f8f8, #f1f1f1); /* IE10 */
  background-image:      -o-linear-gradient(top, #f8f8f8, #f1f1f1); /* Opera 11.10+ */
  background-image:         linear-gradient(top, #f8f8f8, #f1f1f1);
            filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f8f8', EndColorStr='#f1f1f1'); /* IE6–IE9 */

(Generated from http://css3please.com/ – the syntax etc is hence guaranteed to be right!)

Have a look here: http://jsfiddle.net/VGhyB/ to see if it works.

like image 66
Rich Bradshaw Avatar answered Mar 26 '26 14:03

Rich Bradshaw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!