AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

Bootstrap Grid



Bootstrap Tutorial » Bootstrap Grid

How it works
Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content.
It’s built with flexbox and is fully responsive.

Bootstrap's grid system allows up to 12 columns across the page and you can group the columns together to create wider columns.

Grid Classes
The Bootstrap grid system has five classes:

.col- for phones - Extra small < 576px
.col-sm- for tablets - Small ≥76px
.col-md- for small laptops - Medium ≥768px
.col-lg- for laptops and desktops - Large ≥992px
.col-xl- Extra large ≥1200px

 

Bootstrap Grid Equal-width - example

For example, here are two grid layouts that apply to every device and viewport, from xs to xl.

The following example shows a simple "stacked-to-horizontal" two-column layout, meaning it will result in a 50%/50% split on all screens.

Example:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Grid Equal-width - example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
<h1>Bootstrap Grid Equal-width - example</h1>
<p>This example demonstrates a 50%/50% split on small, medium and large devices</p>
<div class="row">
<div class="col-sm-6" style="background-color:yellow;">
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive.
</div>
<div class="col-sm-6" style="background-color:pink;">
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive
</div>
</div>
</div>

</body>
</html>

 

Bootsprap grid Three Unequal Columns - example

How to get a three various-width columns starting at tablets and scaling to large desktops:

Example:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootsprap grid Three Unequal Columns - example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container-fluid">
<h1>Bootsprap grid Three Unequal Columns - example</h1>
<p>Resize the browser window to see the effect.</p>
<div class="row">
<div class="col-sm-3" style="background-color:lavender;">.col-sm-3</div>
<div class="col-sm-6" style="background-color:lavenderblush;">.col-sm-6</div>
<div class="col-sm-3" style="background-color:lavender;">.col-sm-3</div>
</div>
</div>

</body>
</html>

 

Bootstrap Grid System generator, template, tutorial, psd, css only, table, center content

Bootstrap Grid System generator, template, tutorial, psd, css only, table, center content
Bootstrap Grid - bootstrap

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


0
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Send forgot password by mail or message ...
PHP MySQL simple login system...
Check for duplicate username live or ema...
How to create simple search engine using...
Diseño de sitio web CSS Layout...
Diseño de caja flexible CSS3...
Botones en CSS...
ID y Clase, Diferencias entre Class e Id...
Esquina redondeada CSS...
Tamaño de caja css box-sizing: border-b...
Alineación CSS...
Altura y Anchura CSS...
Bordes CSS...
Margen CSS...
Relleno CSS...
Modelo de caja CSS...
Tablas CSS...
Listas CSS...
Enlaces CSS...
Texto CSS...