Can position:relative and position:fixed be used together?

I have a Div container that contains a pen outline, with a z-index of 5, position: relative. When the viewer chooses an underlay graphic with z-index -2, position: absolute; it works fine but if the viewer scrolls down for more underlay choices, the pen outline scrolls off the top. How do I make the pen outline relative AND fixed so it stays on the screen when scrolling down?
Was this page helpful?