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

CSS

How to place this search bar on same line with header ? since the width is small i can't figure out ?

2 Answers

Hi Zolbayar, try to change display prop to "inline-block" and align vertically, some like:

h1, form {
  display: inline-block;
  vertical-align: middle;
}

then assign a width to h1 around 55-60% ;)

thanks a lot

This was the easiest solution I could find to your existing code.

Go you your header h1 tag and add

header h1 {

//exiting css rules
display: inline-block;
float: left;
}

thanks a lot