There is a little bit of a horizontal scroll bar on smaller devices.
When you narrow your browser window you can see the content spilling over a little bit.
I think it would be nice if you added a cursor pointer to the submit button.
Hi @jwilkins.oboe,
thanks for the feedback, I updated the project to add a cursor on submit and remove the horizontal scroll bar on smaller device. thanks!!!
There is an HTML syntax/coding error you should be aware of and address.
Since copy/paste from codepen you can ignore the first warning and first two errors.
I’m not sure if you’ve noticed but there’s an issue with your code. This line overflow: hidden; prevents the user from seeing all the form. This is a bad UX.
If you added it to prevent the horizontal scrollbar then that wasn’t the correct approach.
Looking at your code in the #card you give width: 500px;. So you’ve hard-coded a width but what happens when the device is smaller? That’s when you’ll get a horizontal scrollbar.
What would happen if you use max-width instead.
Side note, to help with responsiveness you should try and get in the habit of using relative units.
@jongieoaquiera Hello, I am liking that linear gradient in the background. The age limit is 0 to 99 years old. Can people that are 100 years old use the form? Ha, ha, ha. Joke.
My suggestion are to:
Style the button to match the page.
Add a hover effect to the button.
You can stack the checkboxes so that they will be lined up on the left hand side.
The mobile view needs some adjustment because the main div goes off the page. You can add a media query to it.
(It is possible to create a responsive form without a media query).
hahaha good one @brandon_wallace.
I still get confused on using media query, i’ll try to update the survey form based on your suggestions after I finished the next project. Thanks!!!
I removed the overflow:hidden and used relative units . It makes the form a lot better especially when viewing from my phone. the thing is, it’s still not 100% responsive because some elements in the card overflows when the screen size is 250px or less. should i just ignore it given the size is really small?