Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Framework Basics Build a Website with Bootstrap Adding the Video Modal and Footer

Video Modal not working for boostarps adding video modal and footer

I've even went as far as to copy and paste the entire project just to see if I had any errors but for some reason when I view the html from the dL file on this video everything is working fine, but on my index.html the video is placed off to the side and isn't responding...Mind you I copied the entire files html and css

I've ran across this before with Modal projects but not to the point where I copy and paste the same code and it still not work

Could you post your code? Or perhaps make it a new Workspace and then provide the link to the preview page?

5 Answers

I'm thinking it the boostrap jquery file, I keep getting errors

http://getbootstrap.com/customize/?id=775790b80dea481f4ff3

What are the error messages? Could you just provide your code somehow?

if you go to the link you can view the json file

I take it you're referring to this error message after I click "Compile and Download":

Ruh roh! Problem parsing or compiling Less files.

Error: error evaluating function darken: undefined is not a function

.btn-default {
  .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
}

I'm confused, I thought your original post said you were using the video's project files' HTML and CSS. But now it sounds like you're making your own customized version of Bootstrap. At this point, I'm not sure what Bootstrap files you're using, since there's an error with your customization settings, I didn't get any zip file downloaded.

Does your modal work if you just use the project zip file's HTML, CSS and JS files?

The typo in your Bootstrap customization settings is in the Buttons section. Your value for @btn-default-bg has a typo. The value should be rgba(0,0,0,0) NOT rga(0,0,0,0) .

Victoria Roberts
Victoria Roberts
5,604 Points

It took me forever but I finally found an easy fix. You need to cut and paste the CDN for bootstrap (the stylesheet and the javascript) into your index.html. It's less than ideal, but it gets the job done. The javascript needs to go at the end of the index and the bootstrap CSS needs to go BEFORE your own stylesheet. Otherwise if will overwrite the compiled Bootstrap and change all your styles.

By far the worst course on your site.