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

Chapter 4. Using Bootstrap's Typography, Buttons, and Images in a Rails Application

Styling a website's text, images, and links is a very important part of any web design. In the preceding chapter, we saw how to define a proper layout of a website using Bootstrap's grid system. In this chapter, we are going to focus more on styling the website's content like text, links, and images.

Bootstrap comes with many default styles for various HTML elements. For example, it comes with default styles for anchor tags, heading tags, ordered and unordered lists, and many more. These styles are applied using particular classes defined by Bootstrap.

Bootstrap focuses on rapid web development. So, when developers with little knowledge of web designing start using Bootstrap, it doesn't let them down. These smaller default styles of Bootstrap will help you get rid of browser default styles of many HTML elements.

In this chapter, we will cover the following topics:

  • Styling typography

  • Creating Bootstrap buttons

  • Styling...