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

100% width for child element

0 votes
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 -->

 width: 100vw;
 position: relative;
 margin-left: -50vw;
 left: 50%;

Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.