Gradient not dsiplaying correctly in Microsoft Edge
up vote
-1
down vote
favorite
There is an ADOBE illustrator generated gradient and the CSS code is as below:
.firs{
background: #4B79A1;
background : -moz-linear-gradient(.....) 100%);
background : -webkit-linear-gradient(.....) 100%);
background : -webkit-gradient(....),color-stop(.....) ));
background : -o-linear-gradient(.....) 0%, rgba(......) 0%, rgba(......) 25.17%, rgba(.........) 50.5%, rgba(.......) 75.17%, rgba(.......) 100%);
background : -ms-linear-gradient(........) 0%, rgba(........) 0%, rgba(.........., 1) 25.17%, rgba(............., 1) 50.5%, rgba(..........., 1) 75.17%, rgba(............., 1) 100%);
}
the gradient CSS runs smoothly in Chrome and Firefox, but in Edge, it becomes like this.
Is there any way to solve this problem?
html css gradient microsoft-edge
add a comment |
up vote
-1
down vote
favorite
There is an ADOBE illustrator generated gradient and the CSS code is as below:
.firs{
background: #4B79A1;
background : -moz-linear-gradient(.....) 100%);
background : -webkit-linear-gradient(.....) 100%);
background : -webkit-gradient(....),color-stop(.....) ));
background : -o-linear-gradient(.....) 0%, rgba(......) 0%, rgba(......) 25.17%, rgba(.........) 50.5%, rgba(.......) 75.17%, rgba(.......) 100%);
background : -ms-linear-gradient(........) 0%, rgba(........) 0%, rgba(.........., 1) 25.17%, rgba(............., 1) 50.5%, rgba(..........., 1) 75.17%, rgba(............., 1) 100%);
}
the gradient CSS runs smoothly in Chrome and Firefox, but in Edge, it becomes like this.
Is there any way to solve this problem?
html css gradient microsoft-edge
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
I have posted the image above
– gmc los
yesterday
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
There is an ADOBE illustrator generated gradient and the CSS code is as below:
.firs{
background: #4B79A1;
background : -moz-linear-gradient(.....) 100%);
background : -webkit-linear-gradient(.....) 100%);
background : -webkit-gradient(....),color-stop(.....) ));
background : -o-linear-gradient(.....) 0%, rgba(......) 0%, rgba(......) 25.17%, rgba(.........) 50.5%, rgba(.......) 75.17%, rgba(.......) 100%);
background : -ms-linear-gradient(........) 0%, rgba(........) 0%, rgba(.........., 1) 25.17%, rgba(............., 1) 50.5%, rgba(..........., 1) 75.17%, rgba(............., 1) 100%);
}
the gradient CSS runs smoothly in Chrome and Firefox, but in Edge, it becomes like this.
Is there any way to solve this problem?
html css gradient microsoft-edge
There is an ADOBE illustrator generated gradient and the CSS code is as below:
.firs{
background: #4B79A1;
background : -moz-linear-gradient(.....) 100%);
background : -webkit-linear-gradient(.....) 100%);
background : -webkit-gradient(....),color-stop(.....) ));
background : -o-linear-gradient(.....) 0%, rgba(......) 0%, rgba(......) 25.17%, rgba(.........) 50.5%, rgba(.......) 75.17%, rgba(.......) 100%);
background : -ms-linear-gradient(........) 0%, rgba(........) 0%, rgba(.........., 1) 25.17%, rgba(............., 1) 50.5%, rgba(..........., 1) 75.17%, rgba(............., 1) 100%);
}
the gradient CSS runs smoothly in Chrome and Firefox, but in Edge, it becomes like this.
Is there any way to solve this problem?
html css gradient microsoft-edge
html css gradient microsoft-edge
edited Nov 12 at 20:05
TylerH
15.3k105067
15.3k105067
asked Nov 12 at 17:31
gmc los
11
11
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
I have posted the image above
– gmc los
yesterday
add a comment |
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
I have posted the image above
– gmc los
yesterday
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
I have posted the image above
– gmc los
yesterday
I have posted the image above
– gmc los
yesterday
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
Did you try code from gradient generator?
I think code like below should works
linear-gradient(to right, rgba(...) 0%, rgba(...) 50%, rgba(...) 51%, rgba(...) 100%)
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
You have to check your rgba() function. By convention rgb is the mixture or color
panel of red-green-blue colors to produce different type of color. But a(alpha) is
used to optimize the color visualization. 1 is set to true which 100% or visible, 0
is set to false which is invisible.
As I can see in your code, -ms-linear-gradient(......., 1). You need to understand that
linear-gradient() function uses top-down, left-right, right-left or bottom-up
approaches. In your case, you are using top-down approach. But the problem is you are
using 100% opacity with edge and you cannot get the gradient correctly.
Try to optimize your linear function with something like this:
-ms-linear-gradient(......., 0.5) or -ms-linear-gradient(......., 0.45) which is
literally translated as 50% or 45% alpha linear.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Did you try code from gradient generator?
I think code like below should works
linear-gradient(to right, rgba(...) 0%, rgba(...) 50%, rgba(...) 51%, rgba(...) 100%)
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
Did you try code from gradient generator?
I think code like below should works
linear-gradient(to right, rgba(...) 0%, rgba(...) 50%, rgba(...) 51%, rgba(...) 100%)
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
Did you try code from gradient generator?
I think code like below should works
linear-gradient(to right, rgba(...) 0%, rgba(...) 50%, rgba(...) 51%, rgba(...) 100%)
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Did you try code from gradient generator?
I think code like below should works
linear-gradient(to right, rgba(...) 0%, rgba(...) 50%, rgba(...) 51%, rgba(...) 100%)
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Nov 12 at 18:27
Sebix468
111
111
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Sebix468 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
up vote
0
down vote
You have to check your rgba() function. By convention rgb is the mixture or color
panel of red-green-blue colors to produce different type of color. But a(alpha) is
used to optimize the color visualization. 1 is set to true which 100% or visible, 0
is set to false which is invisible.
As I can see in your code, -ms-linear-gradient(......., 1). You need to understand that
linear-gradient() function uses top-down, left-right, right-left or bottom-up
approaches. In your case, you are using top-down approach. But the problem is you are
using 100% opacity with edge and you cannot get the gradient correctly.
Try to optimize your linear function with something like this:
-ms-linear-gradient(......., 0.5) or -ms-linear-gradient(......., 0.45) which is
literally translated as 50% or 45% alpha linear.
add a comment |
up vote
0
down vote
You have to check your rgba() function. By convention rgb is the mixture or color
panel of red-green-blue colors to produce different type of color. But a(alpha) is
used to optimize the color visualization. 1 is set to true which 100% or visible, 0
is set to false which is invisible.
As I can see in your code, -ms-linear-gradient(......., 1). You need to understand that
linear-gradient() function uses top-down, left-right, right-left or bottom-up
approaches. In your case, you are using top-down approach. But the problem is you are
using 100% opacity with edge and you cannot get the gradient correctly.
Try to optimize your linear function with something like this:
-ms-linear-gradient(......., 0.5) or -ms-linear-gradient(......., 0.45) which is
literally translated as 50% or 45% alpha linear.
add a comment |
up vote
0
down vote
up vote
0
down vote
You have to check your rgba() function. By convention rgb is the mixture or color
panel of red-green-blue colors to produce different type of color. But a(alpha) is
used to optimize the color visualization. 1 is set to true which 100% or visible, 0
is set to false which is invisible.
As I can see in your code, -ms-linear-gradient(......., 1). You need to understand that
linear-gradient() function uses top-down, left-right, right-left or bottom-up
approaches. In your case, you are using top-down approach. But the problem is you are
using 100% opacity with edge and you cannot get the gradient correctly.
Try to optimize your linear function with something like this:
-ms-linear-gradient(......., 0.5) or -ms-linear-gradient(......., 0.45) which is
literally translated as 50% or 45% alpha linear.
You have to check your rgba() function. By convention rgb is the mixture or color
panel of red-green-blue colors to produce different type of color. But a(alpha) is
used to optimize the color visualization. 1 is set to true which 100% or visible, 0
is set to false which is invisible.
As I can see in your code, -ms-linear-gradient(......., 1). You need to understand that
linear-gradient() function uses top-down, left-right, right-left or bottom-up
approaches. In your case, you are using top-down approach. But the problem is you are
using 100% opacity with edge and you cannot get the gradient correctly.
Try to optimize your linear function with something like this:
-ms-linear-gradient(......., 0.5) or -ms-linear-gradient(......., 0.45) which is
literally translated as 50% or 45% alpha linear.
answered Nov 12 at 19:23
Lawrence Bosumbe
63
63
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267273%2fgradient-not-dsiplaying-correctly-in-microsoft-edge%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you share the related html and css style code, so that we could test it on our side? Besides, when you test the sample in the chrome or Firefox browser, it is better to capture a screenshot and post it, it might be easier for us to know what you want.
– Dillion
Nov 14 at 7:32
I have posted the image above
– gmc los
yesterday