Bootstrap Grid on the screen -


i new bootstrap. created sample web app using layoutit.com. when preview on website, columns aligned properly. used md-2 , md-10, thereby dividing screen 2 layouts 2 , 10. first column 2 grids, starts left of screen. please refer image-1 please refer image-1

when downloaded file , open html file, first column 2 grids, has more space on left side. second column 10 grids has more space right. please refer image-2. enter image description here

**

<!doctype html>  <html lang="en">  <head>    <meta charset="utf-8">    <title>bootstrap 3, layoutit!</title>    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <meta name="description" content="">    <meta name="author" content="">    	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">      <!-- html5 shim, ie6-8 support of html5 elements -->    <!--[if lt ie 9]>      <script src="js/html5shiv.js"></script>    <![endif]-->      <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>  	<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>  </head>    <body>  <div class="container">  	<div class="row clearfix">  		<div class="col-md-2 column">  			<ol>  				<li>  					lorem ipsum dolor sit amet  				</li>  				<li>  					consectetur adipiscing elit  				</li>  				<li>  					integer molestie lorem @ massa  				</li>  			</ol>  		</div>  		<div class="col-md-10 column">  			<table class="table">  				<thead>  					<tr>  						<th>  							#  						</th>  						<th>  							product  						</th>  						<th>  							payment taken  						</th>  						<th>  							status  						</th>  					</tr>  				</thead>  				<tbody>  					<tr>  						<td>  							1  						</td>  						<td>  							tb - monthly  						</td>  						<td>  							01/04/2012  						</td>  						<td>  							default  						</td>  					</tr>  					<tr class="active">  						<td>  							1  						</td>  						<td>  							tb - monthly  						</td>  						<td>  							01/04/2012  						</td>  						<td>  							approved  						</td>  					</tr>  					<tr class="success">  						<td>  							2  						</td>  						<td>  							tb - monthly  						</td>  						<td>  							02/04/2012  						</td>  						<td>  							declined  						</td>  					</tr>  				</tbody>  			</table>  		</div>  	</div>  </div>  </body>  </html>

edit

code attached reference:

please me on why getting empty spaces on left , right of columns. how avoid , use page extensively.

as have not provided code hard understand problem in code. problem comes using container class. instead of using container class use jumbtron class or container-fluid class takes full width of web page. more clarification provide code. this-

<div class = "jumbotron"> ... </div> 

or

<div class = "container-fluid"> ... </div> 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -