Just to experiment with position fixed, I created a blank page with two divs, each fixed. They basically should be 90% of the size of their container. I put the 2nd div inside the 1st one. That would lead me to believe that the 2nd one would be 90% of the width of the 1st one.
Problem is, the 2nd div is 100% the size of the first one, and it completely covers it up. Am I missing something?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css">
I'm not quite sure what the behaviour you're expecting from having a fixed box inside a fixed box is. If it's simply for them both to be fixed with respect to the viewport then the inner one doesn't have to be fixed; it'll simply stay inside the fixed parent.
actually what I'm really using is an absolute box within an absolute box that's scrollable. I'd like to update the internal box to be position:fixed so that if the container is scrolled, the internal box still shows up where I want.
since position fixed takes it's size and location from the viewport, that'll be much more difficult