0

how to apply a class to multiple inputs?

class="inputstyle" <input type=text id="username" placeholder="enter username"> <input type=.....> <input type=blahaahahah>

29th Mar 2017, 10:28 PM
Paraschiv Andrei
Paraschiv Andrei - avatar
1 Odpowiedź
+ 3
You can define style for input: input{ background : #222; } Similar for textarea if you have it in your form. Like for any other stuff. You can combine it with :focus to set additional visual enhancements.
29th Mar 2017, 10:41 PM
Boris Sundic
Boris Sundic - avatar