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

Creating Bootstrap tables


Bootstrap tables are normal HTML tables, along with some special classes provided by Bootstrap. These classes come with various different CSS styles to be applied to the HTML tables. Hence, Bootstrap gives you multiple classes to create different types of tables, as per your requirements.

So, let's create a basic HTML table first. For this, create a dummy project called Bootstrap Tables and create an index.html file. Copy the following Bootstrap recommended HTML markup into this file:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap Tables</title>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
  </head>
  <body>
    <!-- jQuery (necessary for...