Hey everyone,
I finally completed my first “survey project”. Since it was my first survey page project, I did it with the help of freecodecamp; but… as you can see some problems I have in css (i guess)
Edit: Hello again everyone, after I completed first one, decided to make another page; because I felt that I need more practice… and here is my second page’s link:
Check your rule for h1, p {}. The left margin declaration is impacting all paragraphs
Add the follow CSS rule label {display:block;} to force them onto new lines
This is the same as #1. Change your <p> to a <span> and your footer will work like you desire.
Some other things.
Check your ids again. Each one should be unique, but you have a couple repeats.
<input type="expenses" <— I’m pretty sure you meant =“text”. CodePen is a little lenient and will render your page even if the CSS, JS or HTML isn’t 100% correct, but you should always check it yourself.
NOTE: You have 2 more tests to pass, but they’re very simple and I’m sure you’ll be able to figure those out. If not, just post in this thread and one of us will help you out.
Hello again,
I just made second “Survey Page” and checked with script code. It seems 17/17
Is there a place that we can make it more useful in CSS codes? Unwittingly (even if it doesn’t affect the look), maybe something I did a long way. I want to make myself more practical.
For both of them, run your HTML code through the W3C validator.
Since copy/paste from codepen you can ignore the first warning and first two errors.
There are HTML coding errors you should address.
Second one, use external styling. Don’t use in-line style
First one, don’t use <br> to force line breaks
Second one, if you’ve ever filled out a form on-line you may have noticed that required fields are marked with an asterisk. You have fields marked that aren’t required. Remove the asterisk
Second page needs to be responsive
there are fields that overflow the container on smaller screens
Hi @Roma
When no one commented, I did as I know; but let me explain as follows.
When I want to position the RadioButtons vertically in the center, an image like this appears
I just did a quick Google search and came up with this sample for you. Probably easier to do with Bootstrap but I don’t know if you’re familiar with that yet.
sorry to add what Roma said, if you haven’t familiar with bootstrap as im not yet, you might take a look to what i’ve done to have 2 columns radio button, with plain css and html.