Having some issues getting this to work. PLEEEEEEASE help.
I would like an element fixed to the top of the viewport, when the user scrolls down the page it remains at the top of the viewport... easy. If the window is narrower then 960px the horizontal scrollbars appear. If the window is scrolled horizontally I would like the content inside this fixed element to scroll with it.
Please check out the demo, the two green boxes should always line up. Make your window narrow and scroll horiz, notice how they no longer line up.
以上就是Centering a fixed element, but scroll it horizontally...的详细内容，更多请关注web前端其它相关文章！