Question

I have a simple Submit form button, which is getting a style from another stylesheet that can't be edited. I want this button to use the default browser styling though inorder to fit in with the rest of the site.

Is there a CSS or HTML method where I can specify "use default".

HTML

<form action="/example.php" method="post">
<input type="hidden" name="example" value="example">
<input type="submit" value="View Basket">
</form>

Note "None" doesn't work as there is no border then obviously!

FYI. I have done some basic research and looked through SO but can't actually see anything

Était-ce utile?

La solution

You can override the properties with a selector having high specificity or !important. Inspect the element and check which are the properties getting overridden and manually set them to default.

Most of the css properties have value initial.

check this JSFiddle

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top