Bootstrap Classes Which Are Mostly Used In Rails Applications(VERSION 4.3.1)
Bootstrap is nothing but free front-end framework which is used for faster and easier web development as well as easily creates responsive designs. There are some most important advantages of bootstrap like-Easy to use responsive features, browser compatibility we can start installation in rails application with the help of the following command.
$
gem install bootstrap -v 4.3.1
After the installation of bootstrap, we can directly use bootstrap classes in our rails application or we can use CDN as well in the application which is given below.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/>
List of bootstrap classes are mostly used in rails application are listed below-
- container-fluid: This is the main/parent class which is used to declaring the whole HTML page content inside the container-fluid class, It will affect the whole screen and takes full width of the viewport and continuously resizes as you change the width of your screen.
- container: It will affect all the elements present within that div, it will have fixed left and right margin and it will not take the whole width of its main/parent div.
Below classes are generally used for designing grid layout specially for Responsive Layouts. Grid structure brings order to a layout making it easier and it also allows to add elements in layout. The grid is nothing but a grouping of rows and columns.
Read the full blog here http://bit.ly/bootstraprails
Comments
Post a Comment
Comments