Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Button background color is not showing on edge, but working on Firefox and Chrome

I am designing my login page. I have added button background color, which is showing on chrome and firefox perfectly, but it does not showing on microsoft edge. Below are my HTML and CSS, note - I have tried with many color, all are working on chrome and firefox but not in edge

HTML

         .index-un-right-nav-buttom{
                float: left;
                height: auto;
                padding-top: 10px;
                padding-bottom: 10px;
                width: 100%;
            }
                .index-un-right-nav-submit-button{
                    float: left;
                    padding-top: 5px;
                    padding-bottom: 5px;
                    height: 50px;
                    width: 100px;
                    margin-top: 20px;
                    margin-bottom: 20px;
                    margin-left: 10%;
                    border: none;
                    outline: none;
                    color: #ffffff;
                    background-color: #007182fb;
                    font-family: Arial, Helvetica, sans-serif;
                    font-size: 18px;
                    border-radius: 50px;
                }
<span class="index-un-right-nav-button">
    <button class="index-un-right-nav-submit-button">Login</button>
</span>

       

In firefox, image in firefox

In Edge in edge

In chrome, in chrome

like image 564
Bidhan Majhi Avatar asked Oct 07 '18 11:10

Bidhan Majhi


People also ask

What is the default browser background color?

The default background color is transparent.

Why is my background color not showing up in HTML?

that is because you have set the background color, and then overwritten it by using the background shorthand…. either move the background-color call after the background shorthand, or add it TO the shorthand… the browser interprets your current code like this…

How do I change the color of the top bar in Microsoft edge?

Click the Settings and more (ellipsis) button in the top-right corner. Select the Settings option. Click on Appearance. Under the “Overall appearance” section, select the color mode for Microsoft Edge, including Systeme default (switches color based on the Windows 10 color), Light, or Dark.


2 Answers

Edge doesn't support the 8-digit color notation. See CanIUse.

Use

background-color: rgba(0, 113, 130, 0.984);

instead.

like image 138
Mr Lister Avatar answered Oct 16 '22 19:10

Mr Lister


Try changing

background-color: #007182fb;

to

background-color: #007182;

hope that fixes the problem.

Also clearing the browser cashe might help.

like image 23
Mika Turkia Avatar answered Oct 16 '22 18:10

Mika Turkia