Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
I have used the gradient effect in my page.
But my text content is not displayed in black color (#000000) what I have mentioned.
It is something like white.
Kindly guide me on this. Below is the coding what I use.
HTML
.My_Class{margin: 1px;
    padding: 10px;
    color: #000000;
    font-family: 'Quando', cursive;
    font-size:14px;
    background: #f8ffe8;  /*Old browsers */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8ffe8', endColorstr='#b7df2d',GradientType=1); /* IE6-8 *}


This problem occurs only in IE.
Posted
Updated 1-Aug-12 18:36pm
v3
Comments
_Amy 2-Aug-12 0:35am    
In which color it is getting?
Arunprasath Natarajan 2-Aug-12 0:39am    
Its Transparent

1 solution

Hi,
CSS
background-image: linear-gradient(bottom, rgb(52,140,72) 30%, rgb(118,190,168) 72%);
background-image: -o-linear-gradient(bottom, rgb(52,140,72) 30%, rgb(118,190,168) 72%);
background-image: -moz-linear-gradient(bottom, rgb(52,140,72) 30%, rgb(118,190,168) 72%);
background-image: -webkit-linear-gradient(bottom, rgb(52,140,72) 30%, rgb(118,190,168) 72%);
background-image: -ms-linear-gradient(bottom, rgb(52,140,72) 30%, rgb(118,190,168) 72%);

background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0.3, rgb(52,140,72)),
    color-stop(0.72, rgb(118,190,168))
);

Refer the links below:
CSS3 Gradient Generator[^]
Cross-Browser CSS Gradient [^]
Ultimate CSS Gradient Generator[^]
CSS Gradient Background Maker [^]



-Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900