I am trying to define a custom css button for my search form. I cant figure out why this particular button has a strange border around it? I need to get it removed but cannot
Looks like solutions requiring a different html structure work for you. But to answer the original question, here's the css solution for getting a button
to respect your custom styles:
button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0;
border: 0;
}
This tells Safari and Chrome (webkit), Firefox (moz), and standards-compliant browsers to not enforce their default button
styles, and then makes sure there's no padding or border.