skip to Main Content

How can I align form elements in one group-Twitter bootstrap

I tried using md-offset-8, xs-2 but that didn't work, I need to aligned all the form fields in center. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" /> <div class="col-md-8 col-md-offset-4 text-center"> <form class="form" action="/action.php", method="POST"> <div class="form-group row"> <div class="col-xs-4"> <label for="field_1">Field 1</label> <input…

VIEW QUESTION

How to align Bootstrap grids like a masonry layout?-Twitter bootstrap

My grid setup now is as follows: <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"/> <div class='col-md-12 col-sm-12 col-xs-12'> <div class='col-md-9 col-sm-9 col-xs-12 text-center' style="height:200px;background-color:#0077CC; border-right:2px solid white; border-bottom: 2px solid white"> DIV 1 </div> <div class='col-md-3 col-sm-3 col-xs-12'style="height:320px;background-color:#0077CC; border-right:2px solid white; border-bottom: 2px solid…

VIEW QUESTION
Back To Top
Search