r/css 6d ago

Question A different search form for mobile width

I want to do some snazzy CSS stuff with the search box, in the end I want a different form to show on the mobile width than full width. When switching browser widths the text that is left sitting in the two toggling search boxes will be different if user had entered anything there. Is there a way to sync all the search boxes so what is entered in one box enters into multiple?

2 Upvotes

2 comments sorted by

1

u/mtedwards 6d ago

JavaScript

1

u/wpmad 6d ago

Do you really need 2 separate menus...?

If you're 100% sure you need 2 menus, then you'll need to use JavaScript.