Bootstrap 3 Grid Example
How do I make an bootstrap 3 grid example?
What is a bootstrap 3 grid example? How do you make a bootstrap 3 grid example? This script and codes were developed by Sky on 29 January 2023, Sunday.
Bootstrap 3 Grid Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Bootstrap 3 Grid Example</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h3><--- resize your browser ---></h3>
<div class="container"> <h2>1 centered column, using an offset</h2> <div class="row"> <div class="col-xs-8 col-xs-offset-2">col-xs-8 col-xs-offset-2</div> </div>
</div>
<div class="container"> <h2>2 centered columns, using an offset</h2> <div class="row"> <div class="col-sm-4 col-sm-offset-2">col-sm-4 col-sm-offset-2</div> <div class="col-sm-4">col-sm-4</div> </div>
</div>
<div class="container"> <h2>Different sizes for different screen widths</h2> <h4>100% wide on xs, 83% on sm, 50% on md, 25% on lg</h4> <div class="row"> <div class="col-sm-10 col-md-6 col-lg-3">col-sm-10 col-md-6 col-lg-3</div> </div>
</div>
<div class="container"> <h2>Different locations for different screen widths</h2> <h4>Left on xs, right on lg, middle on sm and md</h4> <div class="row"> <div class="col-xs-6 col-sm-6 col-sm-offset-3 col-lg-6 col-lg-offset-6">col-xs-6 col-sm-6 col-sm-offset-3 col-lg-6 col-lg-offset-6</div> </div>
</div>
<div class="container"> <h2>3 divs equally spaced</h2> <div class="row"> <div class="col-xs-4">col-xs-4</div> <div class="col-xs-4">col-xs-4</div> <div class="col-xs-4">col-xs-4</div> </div> <div class="row"> <div class="col-sm-4">col-sm-4</div> <div class="col-sm-4">col-sm-4</div> <div class="col-sm-4">col-sm-4</div> </div> <div class="row"> <div class="col-md-4">col-md-4</div> <div class="col-md-4">col-md-4</div> <div class="col-md-4">col-md-4</div> </div> <div class="row"> <div class="col-lg-4">col-lg-4</div> <div class="col-lg-4">col-lg-4</div> <div class="col-lg-4">col-lg-4</div> </div>
</div>
<div class="container"> <h2>12 divs equally spaced</h2> <div class="row"> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> <div class="col-xs-1">col-xs-1</div> </div> <div class="row"> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> <div class="col-sm-1">col-sm-1</div> </div> <div class="row"> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> <div class="col-md-1">col-md-1</div> </div> <div class="row"> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> <div class="col-lg-1">col-lg-1</div> </div>
</div>
</body>
</html>
Bootstrap 3 Grid Example - Script Codes CSS Codes
body { background-color: #222; color: #eee; text-align: center; margin-bottom: 70px;
}
/* give some room at the top of the page */
.container { margin-top: 70px;
}
/* make each row a little taller than the text inside */
.row { min-height: 3em; line-height: 3em;
}
/* styling for all the columns for example display purposes only */
[class^="col"] { border: 1px solid white; overflow: hidden; white-space: nowrap;
}
[class^="col-lg"] { background-color: #3366ff;
}
[class^="col-md"] { background-color: #5588ff;
}
[class^="col-sm"] { background-color: #77aaff; color: #222;
}
[class^="col-xs"] { background-color: #835FFF; color: #222;
}
![Bootstrap 3 Grid Example - Script Codes](http://shots.codepen.io/skycoder/pen/bqqOQr-512.jpg)
Developer | Sky |
Username | skycoder |
Uploaded | January 29, 2023 |
Rating | 3 |
Size | 2,111 Kb |
Views | 2,024 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
JSONP Examples with the Dark Sky API | 5,884 Kb |
Search box that submits when you hit Enter | 2,459 Kb |
Colors and Sounds | 4,204 Kb |
Show the Local Weather - and a local background image | 8,205 Kb |
Wikipedia Viewer | 3,538 Kb |
Portfolio - Work In Progress | 4,572 Kb |
Media Queries | 2,045 Kb |
Calculator | 4,133 Kb |
Vanilla JS Forismatic Example | 2,284 Kb |
FCC Leaderboard - vanilla JS | 2,546 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Wikipedia API | Coderpilot | 2,802 Kb |
Loading animation | Hafizfattah | 0 Kb |
Sinclair Research Computers | MattCowley | 3,068 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 Kb |
STIKHOI | Denmch | 7,122 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
404 Page | Saransh | 2,666 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!