please see the jsFiddle here: http://jsfiddle.net/xv9Wq/9/
What I’m trying to do is create a header banner that is centered and supports a dynamic width.
Previously, I had a header banner wrapper that was width 100% to then center the header banner. The problem with that is then the banner blocks the page beneath the header banner.
How can I position the header banner in the center of the page while supporting a dynamic content length inside the header banner?
You can’t center an absolutely positioned element with an unknown width, so here’s a workaround.
See: http://jsfiddle.net/thirtydot/xv9Wq/25/
CSS:
HTML: