Hi, I made the survey form project but it doesn’t look great on mobile.
There is extra space on the right and the submit button isn’t centered.
I tried using overflow-x:hiden; to get rid of extra space and margin-right to center the button but it didn’t work.
Any ideas on how to fix this?
This is what it looks like:
you can fix it without media queries just using width and margin. The main problem is you are setting up the container at 100%, change to a value that is less than 100%, like 95% or whatever you like and horizontal margins to auto. Something like margin: 1em auto; You can add max-width too if you don’t want to grow too much on big screens.
Then focus on make responsive the elements inside, in that way the container will be consistent in all devices without media queries