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 trial

PHP Integrating PHP with Databases Filtering Input for Queries Setting Up the Search Form

Search CSS code is not working properly.

The search form is not displaying as in the video. It seems not to be formatted at all. Is there a problem in the CSS code? How can I correct it so it looks like the form in the video?

You've no doubt moved on from this by now, but in case anyone else comes across this issue, you can fix the styling of the search form by inserting the following into /css/style.css

.search form
{
    margin: 10px 0 10px auto;
    width: 300px;
}
.search form input[type="submit"]
{
    padding: 6px;
    width: auto;    
}

3 Answers

Thank you!