Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Creating a Gradient Using CSS

Creating a Gradient Using CSS

Creating a Gradient Using CSS


I am trying to create the following gradient effect, using CSS, so that it appears in Internet explorer version 10 and version 11 just as it does in the following image:


I am using the following CSS and HTML code. This code works well and the gradient appears perfect when viewing it using Internet Explorer versions prior to Version 10. It also looks perfect when using Firefox and other browsers. When viewing using Internet Explorer version 10 and version 11, the gradient is there, but, it looks way different. I don't know why this appears so different in IE10 and IE 11 then in previous versions. Any help in modifying this code to make it appear correctly when viewing in Internet Explorer version 10 and 11 as well as all other browsers would be well appreciated:

padding:0 .5em;
border:1px solid #ccc;
background-image:-webkit-gradient(linear,left top,left bottom,from(#ffffff),to(#efefef));


background-image:-webkit-gradient(linear,left top,left bottom,from(#fff9c1),to(#fed81c));


<TABLE height="100" CELLSPACING=0 CELLPADDING=0 border=0 bordercolor="#000000">
<td width="180" class="intro2 intro3">
<center><span style="font-size:18px;">&nbsp;</span></center>
<center><span style="font-size:18px;">&nbsp;</span></center>

Thanks again for any help

RE: Creating a Gradient Using CSS

For Gradients in IE 10 and above you want to use the ms-linear-gradient.

background: -ms-linear-gradient(top, #fefcea 0%,#f1da36 100%); /* IE10+ */

You can also use online generators to make it easy on yourself.


Phil AKA Vacunita
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close