user3747544
user3747544

Reputation: 35

How to break an image out of bootstrap container?

I am trying to break an image out of bootstrap container, here is my code,

       <div class="container">
            <div class="row">
                <div class="col-md-offset-2 col-md-8">
                    <h3 class="title">Title</h3>
                    <p class="content">Lorem ipsum dolor sit amet.</p>
                    <img class="break-img" src="img-src">
                </div>
            </div>
        </div>

I want to achieve something like this. But in the markup the image must be inside the container-row-col structure. enter image description here

Upvotes: 0

Views: 1452

Answers (1)

Roland R&#225;cz
Roland R&#225;cz

Reputation: 2999

You don't have to put the image inside all of those elements. You can use container-fluid for example with additional classes if necessarily:

<div class="container">
    <div class="row">
        <div class="col-md-offset-2 col-md-8">
            <h3 class="title">Title</h3>
            <p class="content">Lorem ipsum dolor sit amet.</p>
         </div>
    </div>
</div>
<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <img src="something" alt="" class="img-responsive" />
    </div>
  </div>
</div>

Upvotes: 1

Related Questions