I have a problem on child element width

Tell us what’s happening:
I just finished the Survey Form project. However, the width of the child form form-box exceeds that of the parent element form-group. Any suggestions on how to fix this problem? Thanks!

Your project link(s)

solution: https://codepen.io/ustyz/full/poeJWrM

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Build a Survey Form

Link to the challenge:

Issues like these can often be fixed with the CSS box-sizing property (which is the case here). I’ll leave it to you to figure out which element you should place it on and what value you should give it.

1 Like

Thank you so much for your help! I added the CSS code box-sizing: border-box; to the form-box element and it looks better now.

1 Like

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