Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEdouard Winia
3,257 PointsFrom basics / organizing form : actual width of form larger than max-width set, how can it be ?!
Hi !
I had a quick look at the CSS set up for the form in the "organizing forms" of the "Form basics" section.
If you check with google dev tool the selector <form> it's indicated that it has a width of 440px while in the CSS file it's written : form {max-width: 300px; }.
Besides at the very begining of the CSS file it's indicated that we are in the "box-sizing : border-box" mode which implies that margin and padding should be included in the max-width of 330px.
Does anyone has a clue on that ?
Best, Edouard
2 Answers
Niclas Valentiner
8,947 PointsDoes the CSS in the file after the rule for form apply? The rest of the css file?
Sounds to me like the css file itself is broke or breaks at some point.
Edouard Winia
3,257 PointsOk sorry, there was a media query I missed.. :
@media screen and (min-width: 480px) {
form { max-width: 480px;
Thanks for the answer, sorry for disturbing.
Niclas Valentiner
8,947 PointsThat'd make the change, heh. Glad you found the solution.