Reputation: 33
Try the below code, the upper and left border color is darker than the lower and right border color. Why this is happening and how to fix this?
<html>
<input type="text">
</html>
<style>
input:focus{
outline:none;
box-shadow: none;
}
input{
border-color:orange;
box-shadow: none;
}
</style>
Upvotes: 2
Views: 5429
Reputation: 43
I had the same problem. I used:
input {
border: 0.5px solid orange;
}
I think defining the border in one line solves the problem.
Upvotes: 2
Reputation: 473
<html>
<input type="text">
</html>
<style>
input{
border:1px solid orange;
}
</style>
try this
Upvotes: -1
Reputation: 289
Try using this:
input{
border-color:orange;
box-shadow: none;
border-style: solid;
}
Upvotes: -1
Reputation: 190935
There are many border-style
values. Try finding one that works for you like solid
. I'm guessing the input
elements are setting it to inset
.
Upvotes: 9