Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What is Bootstrap's grid system?


When we first think about grids, we imagine the intersection of vertical and horizontal lines that create grids. That's what's happening here too. Bootstrap's grid system contains rows equivalent to horizontal lines, and columns equivalent to vertical lines. When these rows and columns meet, they create grids, which can be used to fill some content in our webpage. Simple, isn't it?

One of the biggest advantages of using Bootstrap's grid system is that it is responsive. Unlike HTML tables, Bootstrap's grid system is flexible and adjusts itself properly in the smaller screens as well. The size of the grids in Bootstrap isn't fixed. They change as per the size of the device's screen. Hence, the content is rearranged, as per the space available.

Most developers fail to understand the grid system properly and hence they fail to achieve a responsive web design. In this section, we will first create a static non-Rails webpage showcasing how to create Bootstrap's Grid...