I have an absolutely positioned div
containing several children, one of which is a relatively positioned div
. When I use a percentage-based width
on the child div
, it collapses to 0 width
on IE7, but not on Firefox or Safari.
If I use pixel width
, it works. If the parent is relatively positioned, the percentage width on the child works.
pixel-based width
on the
child?The parent div
needs to have a defined width
, either in pixels or as a percentage. In Internet Explorer 7, the parent div
needs a defined width
for child percentage div
s to work correctly.