I tried setting position:absolute , and then left , top , right and bottom to fixed values ββin pixels, but if I also did not set width and height , I cannot get it to work correctly on Firefox 11.
The rendering looks fine on safari / chrome ... but is it a Firefox bug or something that is not standard? Using 100% for width and height sometimes a solution, but not when the element does not completely cover the parent container.
See http://jsfiddle.net/EjS7v/6/
This is Chrome (and the desired result)
Firefox (width / height up to 100%)
Firefox (no width / height)
Are there alternatives to using Javascript to calculate width and height at runtime?
Please note that in this example I used a container with a fixed size as a container, but the most interesting and useful case is when the container is elastic.
6502
source share