Skip to content Skip to sidebar Skip to footer

Container Fluid Not Centered

I just want my columns to be centered but there's just too much space on the right side no space on the left.

Thank you but my problem with that is the columns are too close to each other even when I add paddings?

you have to override the padding for the columns (don't use !important) I had to use because the snippet wouldn't work, set the value as you like it more for the padding.

Also it's not centered on smaller screens

To align center use bootstrap class text-center,

Note: plus I used col-xs-4 but only for demo here, if you want to have one column only, use col-xs-12 or col-sm-12

[class*="col-"] {
  padding: 0 50px !important
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="pad-section" id="about">
  <div class="container">
    <h1 class="text-center">COMPANIES</h1>
    <div class="row" style="margin: 150px 0 100px 0;">
      <div class="text-center col-xs-4 col-lg-4">
        <div class="ih-item square effect6 from_top_and_bottom">
          <a href="#">
            <div class="img">
              Image with hovering effect
            </div>
            <div class="info">
              <h3>Title</h3>
              <p>Description</p>
            </div>
          </a>
        </div>
      </div>
      <div class="text-center col-xs-4 col-lg-4">
        <div class="ih-item square effect6 from_top_and_bottom">
          <a href="#">
            <div class="img">
              Image with hovering effect
            </div>
            <div class="info">
              <h3>Title</h3>
              <p>Description</p>
            </div>
          </a>
        </div>
      </div>
      <div class="text-center col-xs-4 col-lg-4">
        <div class="ih-item square effect6 from_top_and_bottom">
          <a href="#">
            <div class="img">
              Image with hovering effect
            </div>
            <div class="info">
              <h3>Title</h3>
              <p>Description</p>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
</div>

Post a Comment for "Container Fluid Not Centered"