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,
In Edge
In chrome,
The default background color is transparent.
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…
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.
Edge doesn't support the 8-digit color notation. See CanIUse.
Use
background-color: rgba(0, 113, 130, 0.984);
instead.
Try changing
background-color: #007182fb;
to
background-color: #007182;
hope that fixes the problem.
Also clearing the browser cashe might help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With