My React input has a CSS setting of 'width: 300px'. However, when displayed on the screen, the width appears to be '322px'. Below is the CSS code for the input:
input {
width: 300px;
padding: 15px 10px;
border: 1px #818181 solid;
border-radius: 12px;
box-shadow: 0px 0px 3px #818181;
}
Here is how the input appears on the screen:
https://i.sstatic.net/nUzuT.png
The 'Submit' button displays correctly with a width of '300px', but the input field seems to extend beyond that. Upon inspection in Chrome, it shows the width set at '300px', yet hovering over the input reveals an actual width of '322px'.
How can I ensure that the input maintains a consistent width of 300px?