Hi everyone! I just completed my survey form project. It was a little bit tricky compared to my first project. Please give me your suggestions and feedback. So I can improve it. Here is the link: https://codepen.io/shwetapatel3591/pen/arabpZ
Nice, it looks really good! My recommendation is with the button:
You could set cursor: pointer on it to give it a pointer look
And maybe add a hover style to it. (Like#submit:hover {background-color: somehovercolor} click on it that blur if you can’t figure it out, it will answer you)
Also, consider going to html settings, and click the ‘insert most common viewport meta tag’, then save & close. This will make it look better on mobile devices.
@shwetapatel3591, that’s a nice looking page. Just something you should be aware of;
codepen provides you with validators for HTML, CSS and JS. Click on the arrow in the upper right and then click on the respective ‘Analyze’ link. You have a misspelling in CSS that affects how your radio buttons look and in HTML, you’re using id’s more than one time.
Don’t use the <br> element in HTML. Use CSS and margin/padding for styling
@shwetapatel3591 Nice color combination, font, and background image. I would love to eat at that restaurant.
Here is my commentary on what can be improved.
At 500px body width and smaller the input fields are not centered.
The option list field is a bit shorter than the others. I recommend making it the same width as the other fields or much shorter.
At 600px width the textarea is going off the page and the input fields could be wider to take up more width.
How about a hover effect on the button?
I recommend also setting cursor: pointer on the button.
@Steffan153 I want to change the background color of radio buttons and checkbox using the following code:
.radio, input [type=“checkbox”]
{
background-color:#fff;
}
But it’s not working. Do you have another suggetions for it?