html - Left, center, right three buttons in bootstrap row -


i'm attempting center 3 buttons inside of container. have gotten close, can not seem keep buttons in 1 row. have tried text-[left, right, center] pull-[left,right].

i have included skeleton shell provide base layout.

<!doctype html> <html>     <head>         <!-- meta -->          <!-- refs -->         <link rel="stylesheet" type="text/css" href="style.css">          <!-- latest compiled , minified css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous">  <!-- optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rhyon1irsvxv4nd0jutlngaslcjuc7uwjduw9svrlvryoopp2bwygmgjqixwl/sp" crossorigin="anonymous">  <!-- latest compiled , minified javascript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-tc5iqib027qvyjsmfhjomalkfuwvxzxupncja7l2mcwnipg9mgcd8wgnicpd7txa" crossorigin="anonymous"></script>         <!-- scripts -->          <title>the title</title>     </head>     <body>    <!-- master container --> <div class="container-fluid page-container">      <!-- divide main content 3 sections left, middle, right -->     <!-- top section container -->     <div class="row top-container">         <!-- top section -->         <div class="col-sm-12">          </div>     </div>      <div class="row">         <!-- left container (vertical)       -->         <!-- left side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">save trick</button>         </div          <!-- right side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div>             <div class="col-sm-8">             <!-- middle container (horizontal)  -->             <div class="middle-container">                 <div class="middle-top">                     <button class="btn btn-default" type="button">approach</button>                     <button class="btn btn-default" type="button">street/half pipe</button>                     <button class="btn btn-default" type="button">coach assisted</button>                 </div>                  <div class="middle-video">     4                 </div>                  <div class="middle-textinput">     5                 </div>                  <div class="middle-bottom">     6                 </div>             </div>         </div>           <!-- right container (vertical)     -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div          <!-- right side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div>          </div>      </div> </div>       </body> </html> 

style.css (to display box model)

* {     border: 1px solid black;     margin: 0;     padding: 0; } 

any tips appreciated.

try simplest solution

html

<!doctype html> <html>     <head>         <!-- meta -->          <!-- refs -->         <link rel="stylesheet" type="text/css" href="style.css">          <!-- latest compiled , minified css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous">  <!-- optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rhyon1irsvxv4nd0jutlngaslcjuc7uwjduw9svrlvryoopp2bwygmgjqixwl/sp" crossorigin="anonymous">  <!-- latest compiled , minified javascript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-tc5iqib027qvyjsmfhjomalkfuwvxzxupncja7l2mcwnipg9mgcd8wgnicpd7txa" crossorigin="anonymous"></script>         <!-- scripts -->          <title>the title</title>     </head>     <body>    <!-- master container --> <div class="container-fluid page-container">      <!-- divide main content 3 sections left, middle, right -->     <!-- top section container -->     <div class="row top-container">         <!-- top section -->         <div class="col-sm-12">          </div>     </div>      <div class="row">         <!-- left container (vertical)       -->         <!-- left side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">save trick</button>         </div          <!-- right side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div>             <div class="col-sm-8">             <!-- middle container (horizontal)  -->             <div class="middle-container">                 <div class="middle-top"><center>                     <button class="btn btn-default" type="button">approach</button>                     <button class="btn btn-default" type="button">street/half pipe</button>                     <button class="btn btn-default" type="button">coach assisted</button></center>                 </div>                  <div class="middle-video">     4                 </div>                  <div class="middle-textinput">     5                 </div>                  <div class="middle-bottom">     6                 </div>             </div>         </div>           <!-- right container (vertical)     -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div          <!-- right side -->         <div class="col-sm-1">             <button class="btn btn-default btn-block" type="button">gold</button>             <button class="btn btn-default btn-block" type="button">black</button>             <button class="btn btn-default btn-block" type="button">blue</button>             <button class="btn btn-default btn-block" type="button">green</button>             <button class="btn btn-default btn-block" type="button">white</button>         </div>          </div>      </div> </div>       </body> </html> 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -