hi all,
I am having troubles with the project “build a survey form”.
In particular, the radio button header (i.e. “Would you recommend freeCodeCamp to a friend?”) doesn’t appear on the page, unless I hide (comment) the prevoius dropdown menu.
Secondly, the radio buttons are not equally spaced.
I tried to get hints from the sample page ( in editor view), but still cannot figure out the problems above.
thanks for your help
Without a link to your pen all anyone can do is guess.
You should be able to paste in the URL.
Couple of things;
you do NOT have to replicate the sample projects. They are just samples, one way to do the project. The hardest part of coding is looking at a problem and coming up with a plan to solve that problem. Starting out by looking at someone else’s code completely bypasses that step.
Just guessing because there’s nothing to look at but sounds like you didn’t close the dropdown.
Again, I’d like to emphasize that you make the project from scratch, with your own code, style and content. Don’t take code from the sample project.
The projects aren’t 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 gain from the incremental challenges.
Yes, it’s normal. You’re learning new concepts. Sometimes the “ah-ha” moment comes quickly, sometimes it takes a little longer.
I’m not sure what you’re attempting to accomplish so I can only guess. From a quick search this answer on SO will explain;
When you have specified a width on the object that you have applied margin: 0 auto; to, the object will sit centrally within its parent container.
Specifying auto as the second parameter basically tells the browser to automatically determine the left and right margins itself, which it does by setting them equally. It guarantees that the left and right margins will be set to the same size. The first parameter 0 indicates that the top and bottom margins will both be set to 0. It’s shorthand for;