Solved

Some css elements are not working in IE11

Posted on 2013-12-30
4
2,683 Views
Last Modified: 2013-12-30
I have the following block in my css which is working pretty fine with the chrome, but not working at all with with IE11 (In IE11 I get just white empty block):

#button-login {
        float: right;
        margin-right: 20px;
        margin-top: 20px;
        width: 80px;
        height: 30px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#acd6ef), to(#6ec2e8));
        background-image: -moz-linear-gradient(top left 90deg, #acd6ef 0%, #6ec2e8 100%);
        background-position: right;
}

#button-login:hover {
        background-image: -webkit-gradient(linear, left top, left bottom, from(#b6e2ff), to(#6ec2e8));
        background-image: -moz-linear-gradient(top left 90deg, #b6e2ff 0%, #6ec2e8 100%);
        background-image: linear-gradient(top left 90deg, #b6e2ff 0%, #6ec2e8 100%);
}

#button-login:active {
        background-image: -webkit-gradient(linear, left top, left bottom, from(#6ec2e8), to(#b6e2ff));
        background-image: -moz-linear-gradient(top left 90deg, #6ec2e8 0%, #b6e2ff 100%);
        background-image: linear-gradient(top left 90deg, #6ec2e8 0%, #b6e2ff 100%);
}

Open in new window


I believe that:
     background-image: -webkit-gradient()
        background-image: -moz-linear-gradient()

Open in new window



Is not working in IE11, but I am not sure how to fix it.
0
Comment
Question by:Ashraf Hassanein
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39747325
For IE10+ you need to add -ms-linear-gradient declaration for the background-image
0
 

Author Comment

by:Ashraf Hassanein
ID: 39747359
Thanks that was indeed the problem thanks for your help.
0
 

Author Closing Comment

by:Ashraf Hassanein
ID: 39747360
Very helpful support
0
 
LVL 58

Expert Comment

by:Gary
ID: 39747369
You'll be an HTML/CSS maestro before you know it.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question