- I have a main container with an inner container.
- I want the inner container to span the full width of the screen.
- The challenge is that I can't simply set the inner container's width to
100vw
because it is nested within the main container, which may be positioned at different vertical locations.
This is how my HTML looks:
<div class="main-container">
<div class="inner-container"></div>
</div>
<div class="other-content"></div>