title: How to extend section width: 100% using css
body: <p>I have a section inside <code>width: 1180px;</code> i want to extend this green color div I want to make width: 100% I have tried using <code>vw</code> but not getting but some extra space is coming. can anyone suggest me? Is there any other way to do using CSS.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.wrapper {
    width: 100%;
    position: relative;
    background: #ccc;
  }
  
  .inner {
    width: 1180px;
    margin: 0 auto;
    background: pink;
  }
  
  .box1 {
    height: 50px;
    background: red;
  }
  
  .box2 {
    height: 50px;
    background: green;
    margin-left: calc(-100vw/2 + 100%/2);
    margin-right: calc(-100vw/2 + 100%/2);
    width: 100vw;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;div class="inner"&gt;
      &lt;div class="box1"&gt;&lt;/div&gt;
      &lt;div class="box2"&gt;&lt;/div&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>