Why i have this difference in height on my input when i check the website on Safari?
I can see that Safari includes the border line also in the heigth, i'm not sure if that's the problem or how to fix that.
Input on Chrome
Input on Safari
<div className="input_city">
<input
id="input_basic"
placeholder="Search city"
onChange={handleInput}
value={searcher}
/>
<button className="button_search" onClick={handleSubmit}>
Search
</button>
</div>
.input_city {
display: table;
align-items: center;
grid-column-start: 2;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 6;
margin-bottom: -10px;
text-align: end;
}
#input_basic {
padding: 8.5px 5px;
font-size: 1rem;
border-radius: 3px 0px 0px 3px;
border: 1px solid #ccc;
border-right: none;
vertical-align: bottom;
}
#input_basic:focus {
outline: none;
}
.button_search {
border-radius: 0px 3px 3px 0px;
padding: 10px 5px;
border: 1px solid #ccc;
width: 5rem;
background-color: #ec6e4c;
color: #fff;
border-left: none;
cursor: pointer;
}
.button_search:focus {
outline: none;
}
.button_search:hover {
background: #ec6f4cc7;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…