How to align 3 boxes in twitter bootstrap horizontally?

admin

Administrator
Staff member
I need to insert 3 boxes next to each other in wordpress theme. I'm using <strong>wp-bootstrap theme</strong>.

What I did I create a page and I named it "offers", and I wrote the following code

Code:
&lt;div class="col-xs-4 text-center offer-box"&gt;
    &lt;h1&gt;Offer 1&lt;/h1&gt;
            &lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. &lt;/p&gt;
    &lt;/div&gt;

    &lt;div class="col-xs-4 text-center offer-box"&gt;
    &lt;h1&gt;Offer 2&lt;/h1&gt;
&lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. &lt;/p&gt;
    &lt;/div&gt;

    &lt;div class="col-xs-4 text-center offer-box"&gt;
    &lt;h1&gt;Offer 3&lt;/h1&gt;
            &lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. &lt;/p&gt;
    &lt;/div&gt;

in css file, I wrote

Code:
.offer-box {
    background: #f4e759;
    height: 300px;
    border-radius: 10px;
}

.offer-box h1 {
    color: #080808;
}

.offer-box p {
    color: #080808;
    font-size: 1.2em;
}

It works but the boxes appear without margins. I need to make it with margins left and right for each box.

It should appear like that image exactly<br>
<img src=" " alt="enter image description here">