making registration/login forms responsive
-
Instead of forms being stacked on each other on desktop, we wanted to have them next to each other. Then, on mobile, they become stacked. I couldn’t find out how to do this anywhere else, so I created the following css to be added to theme file:
#wpas_form_login { width: 48% !important; clear:none !important; float:left !important; } #wpas_form_registration { width: 48% !important; clear:none !important; float:right !important; } @media screen and (max-width: 770px) { #wpas_form_login { width: 95% !important; clear:both !important; float:none !important; } #wpas_form_registration { width: 95% !important; clear:both !important; float:none !important; } } input .wpas-form-control, textarea .wpas-form-control, .uneditable-input .wpas-form-control { width: 100% !important; } .wpas-checkbox input { width: 5% !important; }
I thought this might help someone who wants a more responsive layout. Also, if anyone has any better suggestions, please let me know.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘making registration/login forms responsive’ is closed to new replies.