html - Is there any possibility to style an [input] tag? -
is there possibility style <input>
tag?
wrote:
<li><form> <input class="search" name="s" type="search" placeholder="search..."> <input type="submit" value="> </form></li>
and styling:
form{ height: 40px; } .search{ border: none; background-color: #7e7376; } input[type=search]{ font-family: 'overpass'; font-weight: bold; color: #2c2729; margin-top: 4px; padding: 10px 15px; height: 12px; }
it looks different on various browsers. tried apply reset css didn't help. building menu bar , search box needs part of it. on this?
the appearance property looking for.
the appearance property used display element using platform-native styling based on users' operating system's theme.
input { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
Comments
Post a Comment