I am looking to implement a search feature on my website.
It seems that in Firefox and Internet Explorer, the search function appears fine without any unexpected borders.
Firefox
IE
However, when viewing the search function in Chrome and Safari, there is a strange border around the input element.
Chrome
Safari
Below is the HTML and CSS code I have used:
<input type="search" id="generic_search" onkeypress="return runScript(event)" />
<input type="button" id="generic_search_button" />
The CSS rule border:0
has been applied to all elements.
#generic_search
{
font-size: 14px;
width: 250px;
height: 25px;
float: left;
padding-left: 5px;
padding-right: 5px;
margin-top: 7px;
}
#generic_search_button
{
float: left;
width: 25px;
height: 25px;
margin-top: 7px;
cursor: pointer;
background-color: White;
background-image: url(/Images/search.png);
background-repeat: no-repeat;
background-position: center center;
}
How can I eliminate this unwanted border?