I am attempting to contribute to a rails app which has the following in the gemfile:
gem 'bootstrap-sass', '~> 2.3.2.2'
gem 'sass-rails', '>= 3.2'
It seems like everything works correctly in my layouts with the exception of columns:
<div class="col-md-6">
has no effect whatsoever on the content that it wraps.
However, if I add this line:
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" />
To my <head>
, the <div class="col-md-6">
works perfectly but several other bootstrap classes don't work, specifically around the navbar
I have in place.
How can I get the effect of the above div class without including the following line?
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" />
Did you import the bootstrap mixins? You'd need to add @import "bootstrap/theme";
to your application.css.scss
file
Here's a link to that section of the docs.
Also, have you tried the bootstrap-sass-rails gem instead?