100% width for child element

0 votes
123 views
added Mar 14, 2018 in CSS by anonymous
<div class="container" style="width: 900px; margin: 0 auto;">
   <div class="width-full">
     <!-- Full width container goes here -->
   </div>   
</div>

.width-full{
 width: 100vw;
 position: relative;
 margin-left: -50vw;
 left: 50%;
}
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...