Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS 3 selecting elements by checking an attribute for multiple values

I want to apply the same style to text and email input types. I tried input[type="text"][type="email"] but it's not working. Any help?

like image 415
Geethanga Avatar asked Mar 18 '26 01:03

Geethanga


1 Answers

Maybe try without " for example input[type=text]. If you want to apply it to both, try

input[type=text], input[type=email]

or

input[type="text"], input[type="email"]

They're equivalent.

like image 134
user1882981 Avatar answered Mar 19 '26 21:03

user1882981



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!