I used a "shadow" element to occupy the navigation bar's links' space and added it at the end of the container's child nodes. The element is clipped into this shape, and displayed. An element with position: This approach works great -- IF you have a fixed height footer. If we want to have a scroolbar within the content area, we need to apply a little bit more of CSS magic.
I'm giving you permission to pay attention to it now.
Using the translateY and top property
You must also specify at least one of toprightbottom or left for sticky positioning to work. Set the shape of an element This example demonstrates how to set the shape of an element. An absolutely positioned element seeks it's closest parent that is absolute or relatively position in order to determine it's position. But if the content is tall and the window is short, it will put the copyright info over the page content, and then scrolling down to see the content will leave you with a floating copyright notice. Other content will not be adjusted to fit into any gap left by the element.