Is it possible to change the colour of the grey "border" around a text input without changing the border thickness using CSS?
I initially thought that using border-color would allow me to change the colour, however, as seen in the image / code example below, changing the colour also appears to make the border thicker. I would like to keep the default width (2px) but change the colour of the border.
The image is a zoomed in screenshot of the code snippet below to highlight the apparent change in border thickness when the colour is changed.
* {
box-sizing: border-box;
}
.container {
display: flex;
flex-direction: column;
}
input[type=text] {
flex: 1 1 0;
margin-bottom: 2px;
}
.different_color {
border-color: red;
}
<div class="container">
<input type="text">
<input type="text" class="different_color">
</div>
Edit
To clarify, the default border, which according to the developer console has a border-width of 2px appears to be rendered as only part of the 2px whilst still essentially padding the content in by a fixed 2px. However, when I set a colour on the border, it no longer renders only this small part, but the whole 2px. The image below shows this with the left side of the image being the default border and the right side of the image being the border with the border-color set to red.


