Imagine:
<div class="outer">
<div class="inner">
</div>
</div>
Where:
.outeris part of a column structure, and its width is a percentile and therefore fluid..innerrepresents afixedposition element that should fill with a 100% width the.outerelement. However its position vertically remains the same, thereforefixed.
I’ve tried to implement this layout with the following CSS:
.outer {
position: relative;
width: %;
}
.inner {
position: fixed;
width: 100%;
}
However, .inner does not calculate its width as a percentage of its relative parent. Instead it fills the full width of the window/document. Attempting any left or right properties result in the same parent-ignoring qualities.
Is there any way around this?