Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

100% width for child element

0 votes
9 views
added Mar 14, 2018 in CSS by FeruzRahim Lance Corporal (780 points)
<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%;
}

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...