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?










share|improve this question
























  • 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















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?










share|improve this question
























  • 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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%)





share|improve this answer








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.

























    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.





    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      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

























      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%)





      share|improve this answer








      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.






















        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%)





        share|improve this answer








        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.




















          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%)





          share|improve this answer








          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%)






          share|improve this answer








          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.









          share|improve this answer



          share|improve this answer






          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.
























              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.





              share|improve this answer

























                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.





                share|improve this answer























                  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.





                  share|improve this answer












                  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.






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 12 at 19:23









                  Lawrence Bosumbe

                  63




                  63






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      How to send String Array data to Server using php in android

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Is anime1.com a legal site for watching anime?