# Restaurant-Survey Form

**URL:** <https://forum.freecodecamp.org/t/restaurant-survey-form/280754>\
**Category:** I Built This\
**Created:** [May 30, 2019, 9:59pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754 "2019-05-30T21:59:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 30, 2019, 9:59pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/1 "2019-05-30T21:59:58Z")

</div>

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](https://codepen.io/shwetapatel3591/pen/arabpZ)

Thank you,  
Shweta

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 30, 2019, 10:23pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/2 "2019-05-30T22:23:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [May 31, 2019, 1:24am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/3 "2019-05-31T01:24:54Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 2:21am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/4 "2019-05-31T02:21:28Z")

</div>

Thank you so much, Roma, for your suggestions. I will look into it and make all the changes.

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 2:24am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/5 "2019-05-31T02:24:06Z")

</div>

@Steffan153 Thank you for your feedback. I will do the changes with the button. l just forget to apply hover effect. I appreciate it.

---

<div class="post-metadata">

**Author:** ![brandon\_wallace](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brandon_wallace/32/424723_2.png) [@brandon\_wallace](https://forum.freecodecamp.org/u/brandon_wallace)\
**Post date:** [May 31, 2019, 2:46am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/6 "2019-05-31T02:46:13Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:15am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/7 "2019-05-31T03:15:12Z")

</div>

> [@brandon\_wallace](#):
>
> At 600px width the textarea is going off the page

@shwetapatel3591: Hint (click on blur to reveal): Set `max-width: 100%` on the textarea

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 3:26am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/8 "2019-05-31T03:26:08Z")

</div>

@Steffan153 Thank you for the hint to solve my issue. I am working on it and definitely try your code.

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:28am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/9 "2019-05-31T03:28:45Z")

</div>

Quick codepen tip: To clean up your code, in any editor (HTML, CSS, or JS) you can click ‘Tidy XXX’ (XXX is HTML, CSS or JS).

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 3:40am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/10 "2019-05-31T03:40:58Z")

</div>

@Steffan153 I have just completed all the changes. Can you please check it?  
[https://codepen.io/shwetapatel3591/pen/arabpZ](https://codepen.io/shwetapatel3591/pen/arabpZ)

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:45am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/11 "2019-05-31T03:45:05Z")

</div>

> [@Steffan153](#):
>
> 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.

Almost good, but to complete all the changes, complete this, and then also this:

> [@brandon\_wallace](#):
>
> 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.

And, maybe make the select box have the same background as the other inputs. If you need a hint, feel free to ask me.

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 3:46am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/12 "2019-05-31T03:46:26Z")

</div>

@brandon_wallace Hi, Thank you so much for your suggestions and feedback. It helps me a lot. I have just try to do all the correction as you mentioned.  
Can you please check it? [https://codepen.io/shwetapatel3591/pen/arabpZ](https://codepen.io/shwetapatel3591/pen/arabpZ)

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:47am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/13 "2019-05-31T03:47:44Z")

</div>

A comparison between with the viewport meta and without:  
Without it:

 ![DeepinScreenshot_select-area_20190530214532](https://global.discourse-cdn.com/freecodecamp/original/3X/1/1/115f3f9316a9828a359c598b08d5a3c006b4f996.png)  
With it:  
 ![DeepinScreenshot_select-area_20190530214617](https://global.discourse-cdn.com/freecodecamp/original/3X/1/0/10aef165b23edbebd412b1decfde54b474e4ee5a.png)  
And of course, you can still scroll down.

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:53am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/14 "2019-05-31T03:53:20Z")

</div>

On dropdown, to get same width you can set it to 315px. To get background white, `background-color: white.`

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 3:54am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/15 "2019-05-31T03:54:12Z")

</div>

@Steffan153 Thanks again for your guideline. I insert the viewport meta tag. It really makes the difference.

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 3:57am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/16 "2019-05-31T03:57:40Z")

</div>

If you ever need to see what something looks like on mobile, I can send you a screenshot or screen record.

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 4:00am UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/17 "2019-05-31T04:00:20Z")

</div>

@Steffan153 Thanks. I appreciate it and I will surely ask you if I need it.

---

<div class="post-metadata">

**Author:** ![Steffan153](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/steffan153/32/119621_2.png) [@Steffan153](https://forum.freecodecamp.org/u/Steffan153)\
**Post date:** [May 31, 2019, 4:28pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/18 "2019-05-31T16:28:26Z")

</div>

Here’s a short vid I made on testing a pen on mobile (no real phone required, this only simulates it):

[https://i.imgur.com/WyYZSWl.mp4](https://i.imgur.com/WyYZSWl.mp4)

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 5:29pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/19 "2019-05-31T17:29:55Z")

</div>

@Steffan153 It’s a nice way to check the application or web page. I like it and I will try to use it.  
Thanks.

---

<div class="post-metadata">

**Author:** ![shwetapatel3591](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shwetapatel3591/32/116688_2.png) [@shwetapatel3591](https://forum.freecodecamp.org/u/shwetapatel3591)\
**Post date:** [May 31, 2019, 5:38pm UTC](https://forum.freecodecamp.org/t/restaurant-survey-form/280754/20 "2019-05-31T17:38:08Z")

</div>

@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?

[Next page](https://forum.freecodecamp.org/t/restaurant-survey-form/280754.md?page=2)
