At this fiddle, you can see a header-bar with a title on the left and some text on the right. The problem should be obvious,
- the header-bar does not scale with the full site, only with the visible part
- The right-floated text sticks to the top of the header and is not on the same baseline as the title.
How can I fix this? Is there a better way to achieve what I want to do?
Clarification: With “the header does not scale” I mean that it does not have a width of 750px as defined in #header because the page is too small.
A few things:
overflow: auto;to the container.max-widthinstead ofwidth, as it scales nicely.Try this: http://jsfiddle.net/PkkU8/7/