html - What are the input required attribute default declaration? -
i facing strange problem.
i have wordpress
site, mailchimp wordpress plugin
. there email
field, has required
attribute. around field, there red border or something.
first inspected element, turn of css properties, border still there.
i wondering why. when removed required
attribute, border has gone. thought on right way, , add css:
:required { border: none; outline: none; }
that not helped me out.
i visit page: http://www.w3schools.com/cssref/sel_required.asp
but not see, default declarations selector.
i tried search required on w3.org wiki, no success.
so, of course first question how remove border, , second is, can find default declarations required?
input[required], input:required { display:block; background-color: yellow; border: 0 !important; outline: none !important; }
Comments
Post a Comment