Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAkilah Jones
18,397 PointsFront-End Development: Twitter Bootstrap not working
I downloaded the project files, but the twitter bootstrap styles are not being applied to my web app. After looking at the source, I can see that none of the bootstrap files are being referenced in the HTML header.
I manually included them and the page layout displays correctly.
Since this was downloaded without modification, I assumed that everything should be implemented already.
I searched forum and google, but nothing seems to work!
Is anyone else having this issue? Is this something wrong the project files?
I noticed that this was initially part of the Ruby on Rail Track, but later removed...
Please advise
Thanks
2 Answers
Andrew McCormick
17,730 PointsMake sure you watch the video before this one: installing-twitter-bootstrap
Kester Browne
24,414 PointsMake sure you have
@import "bootstrap";
at the top of your CSS file.
Akilah Jones
18,397 PointsAkilah Jones
18,397 PointsI did watch (and follow) the video and I imported bootstrap, so I don't understand what went wrong.
However, I did come across another site that had installation instructions. Everything worked perfectly.
Instead of downloading directly from bootstrap site and moving files. I updated the gemfile, did a bundle install, imported bootstrap and restarted the server.