+ 1

CSS only challenge

I've written this code: https://code.sololearn.com/Wz3rY2VQeYgW/#css Problem: I have to do same thing on the previous input. How to do so? Any ideas? Also, how to change styles of button simultaneously?

12th Jan 2020, 11:40 AM
777
777 - avatar
2 odpowiedzi
+ 1
You can select all inputs with the siblings selector (~), but it won't do what you want, because the button is in the way of the first input, and even if you display:block the input, it won't change the width. The only solution is to get the button first or last.
12th Jan 2020, 12:06 PM
Calin Onofrei
Calin Onofrei - avatar
+ 1
Thanks friends for your time! I would be using javascript, if no answer appears...
12th Jan 2020, 12:39 PM
777
777 - avatar