Gap when aligning 2 list groups in Bootstrap 3 -


i trying center business1,2 boxes on same row under do.. plus want rid of nasty right gap added bootstrap3. tried many methods none had worked. codepen:http://cdpn.io/vfilc html code:

![<div class="slide1">           <div class="container">              <div class="row">                <div class="col-md-6 col-md-offset-3">                 <div class="page-header">                  <h2 class="skills " style="font-family: arial">what do</h2>                 </div>                 </div>               </div>            </div>          </div><!--end slide1 -->           <article class="container">             <div class="row" id="boxes">              <section class="col-sm-6" id="first-section">               <div class="list-group" id="business1">                   <a href="#" class="list-group-item active">                       business1                   </a>                   <a href="#" class="list-group-item">construction</a>                   <a href="#" class="list-group-item">design</a>                   <a href="#" class="list-group-item">etc</a>               </div>               </section>              <section class="col-sm-6" id="second-section">                <div class="list-group" id="business2">                   <a href="#" class="list-group-item active">                      business2                   </a>                   <a href="#" class="list-group-item">planning</a>                   <a href="#" class="list-group-item">outsourcing</a>                   <a href="#" class="list-group-item">hr</a>               </div>             </section>           </div><!--end row-->         </article>][1]      css:     #boxes{margin:0 auto;}     #business1{width: 250px;}     #business2{width:250px;} 

just add text-center class

bootply :http://www.bootply.com/128932

html :

      <div class="container">          <div class="row">            <div class="col-md-6 col-md-offset-3 text-center">   <!-- here -->             <div class="page-header">              <h2 class="skills " style="font-family: arial">what do</h2>             </div>             </div>           </div>        </div> 

update :

bootply : http://www.bootply.com/128934

just add css :

.list-group{      width:150px;      margin-left: auto;      margin-right: auto;   } 

update again :

just change col-6 want

for exemple : col-3 :

bootply : http://www.bootply.com/128937


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -