- Integrate Bootstrap into a Rails App via the Bootstrap Gem
For this lab we will be integrating Twitter Bootstrap into our application. Once you are complete make sure to run the tests to validate your work.
- Add the Bootstrap SASS Gem to the Gemfile.
- Add the correct statements to the CSS manifest
- Create a basic grid layout
- Inside the
<body>
tag create a<div>
tag with the CSS classcontainer
. - Inside of
container
element, create 3<div>
tags with the CSS classrow
. - Inside each of the
row
elements, create 3 evenly size columns.- In each column add a
<p>
tag with some text and a Bootstrap button.
- In each column add a
- Inside of the
container
element, create a navigation bar with 3 links, Home, About, Contact. Set thehref
attribute to#
.
- Inside the
View Bootstrap Example Rails Lab on Learn.co and start learning to code for free.