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
Zolbayar Orshil
9,838 PointsHow to place this search bar on same line with header ? since the width is small i can't figure out ?
2 Answers
Raúl Barrera C.
18,943 PointsHi 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% ;)
Kevin Korte
28,149 PointsThis 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;
}
Zolbayar Orshil
9,838 Pointsthanks a lot
Zolbayar Orshil
9,838 PointsZolbayar Orshil
9,838 Pointsthanks a lot