Tag Archive for CSS

Applying CSS on INPUT with type.

This has bug me for a while already (my bad, should have read more CSS REF when I was still a student)

I would like to apply certain style on input elements in HTML, example: border:1px solid #efefef;
but I would only like this style to apply to type=button or type=text, but not other input elements.

Google comes to help.

input[type=”button”], input[type=”text”]
{border:1px solid #efefef;}

Good to take a note.
🙂