I\'m trying to give a fixed element a width of a percentage parent (here #container). When I use pixel instead of the percentage then it works
width
#container
set the width of "fixed" to 100%, and give it (let's say) a position: relative instead of fixed. http://jsfiddle.net/J7yE4/
#fixed { position: relative; width: 100%; border: 1px solid green; }