I’ve been banging my head for hours trying to figure this out. Why, in this demo, is the textbox shifted downwards a bit and not on the same line as the blue box? Thanks in advance!
EDIT: Sorry if I didn’t state this clearly: The top of the text box should align with the top of the blue box.
Update: About the seemingly “wrong” vertical placement.
You have to apply
margin-top:6px;margin-bottom:0px;to the span to fix the issue (See http://jsbin.com/eciyib/8). By default, the top and bottom margin of thespanis 10px, as defined by the#toolbar > *selector. The<input>element has a top and bottom margin of just 6px, as specified at the#urlselector.You haven’t defined a
widthproperty for thediv#toolbarelement. See below. When the viewport is smaller than1690px, the input element will shift down, to fit.JSBin: http://jsbin.com/eciyib/7/
Further explained:
#toolbar > * {margin:10px 5px;}#toolbar > *:first-childand#toolbar > *:last-childselectors change the left and right margin of the childs to 10px.1228px, as defined inline