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 trial

CSS

Y G
Y G
1,440 Points

Adding Bootstrap to my webpage.

Hello, I am attempting to add Bootstrap to my webpage to utilize some of its functions; however, when I link to it in the head section of the webpage, it "overrides" all the CSS I wrote. I am not sure what I am doing wrong or how to fix this.

2 Answers

Hi there!

You can re-arrange the order that you call the stylesheets in order to help with this. If your stylesheet is loaded before the Bootstrap stylesheet, the browser will load the Bootstrap styles over your own styles (Cascading Style Sheets).

Try re-arranging them so that your stylesheet loads after the Bootstrap one to see if that helps.

Y G
Y G
1,440 Points

Hi Bryan,

Thank you so much! That seemed to do the trick :)