I’ve got this page, in which I’m trying to duplicate the header of this page. With your collective help and Google, I’ve muddled this far but I’ve got two issues that I’m not able to brute force my way through.
First, I need the cursive “Your Mountain Dreams” to push up, instead of vertically centered in the header. I’ve played with margin and padding top and bottom but I’m definitely barking up the wrong tree as it’s not getting me what I want.
Secondly, when you hover over “Search MLS” and “Area Info”, you can see that the flyout boxes dynamically stretch horizontally and are centered on the original template but on my version, they align left and push out toward the right and the widths are fixed. How do I center the flyout boxes like in the original template and have the flyout boxes dynamically widen to allow link text without wrapping it?
It looks like the default vertical margins on the h1 element.
Try reducing the margiin-top on the h1 / .htitle element. There is also a small amount of padding-top on the #header element contributing to the placement of the title.
Because the margin-top is still there on the h1.
The padding on the header is only small, so taking it out will not have much effect.
But the h1 default vertical margin is quite large, that is the thing to reduce.