I am writing a component that will be used on several sites.
Each website has its own style sheet and displays certain things in different ways.
all my html is wrapped in a div with id:
<div id="myComponent">...</div>
my component, however, should look consistent across all sites.
this is great as I apply the style to most of the attributes in my component.
div#myComponent p {font-size:11px;} etc
however, I came across a site that removes a border from all input fields
input {border: medium none;}
I need to "cancel" this directive for input fields in my component and it is preferable to use the style of browser styles for inputs, since the frame style for input type="text"should be different from input type="button".
how would you achieve this?
source
share