Skip to article frontmatterSkip to article content
tools = require('../js/tools'); tools.init()
Loading...

what is bootstrap ?

originally developped by twitter, bootstrap is a - mostly CSS - library that offers

note that bootstrap depends on jQuery

why bootstrap

status

like for jQuery, the hype is on the wane, so learning bootstrap in 2024 or later makes little sense; however you may come across a code that uses it, and in that case the information below may still be helpful.

Loading...

bootstrap grid system

the basics of the grid system rely on an overall container <div> that has a class container or container-fluid the latter taking all the available space (in width), while the former will impose the width to belong in a finite set of values as far as possible (see example above)

make sure to rtfm

grid system (continued)

There are means to define separate layouts for different device widths (details here)

make sure to rtfm

bootstrap provides a gallery of example codes

it is strongly recommended to browse that page to see the kind of results that you can expect with bootstrap; all this should feel rather familiar, given the number of sites that are built on bootstrap

the code for each of these examples is generally reasonably small, although the constructions required with bootstrap tend to be rather verbose

practice