Form input elements not centered in container

Tell us what’s happening:
The form control inputs are not aligned in the center of the container they’re in. They’re slightly to the right. I have the left and right margins as “auto.”

Your code so far
.form-control {
width: 100%;
padding: 0.3em 0.5em;
margin: 0.5em auto 0.75em auto;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

Challenge: Build a Survey Form

Link to the challenge:

After check your survey form, it’s working fine with me. 17/17 Passed

Yes but I’m saying aesthetically, the input form fields look off-centered. Compare the textarea with the submit button. It’s slightly to the right.

There’s no problems in your survey form.
Do you think you have an issue? please check your css code again.
you can take it completely from here Survey Form.

@ashley31836, add border: solid 1px green; to your form-labels class selector and add border: solid 1px red; to your form-control class selector to see how you have the elements set up.

On a side note, looks like quite a bit of the HTML and some of the CSS is the same as the sample. You don’t want to do that. Make the project from scratch, with your own code, style and content. Don’t take code from the sample project.
The projects are not just another challenge. Each one is meant to be a significant step in your progress. Every project you do will require research, planning, trial and error, and strengthening your skills beyond what you gained from the incremental challenges.

1 Like

I wouldn’t advise that.
Just copying code from the sample is not the best form of learning.

It is better for users to research and ask questions instead of copying the sample :grinning:

There’s many methods to reach understanding, it’s varies from person to another.
time is the most valuable something don’t waste it so on this case never mind if correct his code by ready one :grinning_face_with_smiling_eyes:

Advising other users to cheat is not helping them to learn.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.