2

I have a div inside a container that I wish to extend beyond the container to fit the screen width. I'm using bootstrap columns to create the divs.

<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="mydiv">
                Content
            </div>
        </div>
    </div>
</div>

The container has a set width however that only fills about 1200px and mydiv can't extend beyond that.

Matt
  • 896
  • 5
  • 18
  • 47

1 Answers1

2

You can make the inner div have a position:absolute unless its parent has a position:relative.

Or you could use negative margins on your inner div.

Jared
  • 310
  • 1
  • 9