Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Bootstrap makes use of the less framework, and you can type in different values for these things. So the easiest one to understand is here under Colors. So what exact shade of blue would you like to have where blue occurs inside of your document, what exact shade of green and so forth? So you can customize all these variables and type in your own values and then customize here and download by clicking on the big honking button at the bottom of the page that will download exactly what it is that you want to have for your website.
So you'll either need to now as part of that process keep track of where all those customizations are and retype them in here on the screen, or you'll have to keep track of what they are and re-enter them when you upgrade your version of Bootstrap, and that's just too much work for me. I can't remember what I've changed and what I haven't changed. So, I think a far better approach is to create a custom stylesheet and put any changes that you're going to include there. Anything you're going to override or any additional styling that you're going to include, put it all in that stylesheet, and that will make your website so much more maintainable.
It'll be so easy to upgrade the latest version of Bootstrap, because then you'll just copy those new files in over the old files and your customizations are all still intact. So, let me show you how to do that process now. Back here in Dreamweaver, I'm going to go ahead and I'm going to create a new document, so File > New, and this time it's going to be a stylesheet. So I'm going to pick Stylesheet from my Page Types over here and say Create, and it's going to create a blank stylesheet document for me. Because this is just a proof of concept thing, I'm going to make a really quick change here.
I am going to go ahead and change the body background color to a lovely shade of green, so I'm going to say background-color is bada66, and I'm going to go ahead and save that, File > Save. So I'm going to go to Desktop, to my Bootstrap folder, to my CSS folder, and I'm going to save this as custom.css, so that is my custom stylesheet.
Now the next thing I have to do is attach it to the document I have been working on, so here's my schedule.html, which is the document I've been working on in this chapter. I'm going to click here just after the style sheet for bootstrap-responsive, and I'm going to insert my stylesheet here. So, over here on the right side of the screen, if you click on the Link icon here inside of the CSS Styles palette and you choose the Custom Style Sheet here from the list, go ahead and say OK. It'll go ahead and write in the code to include your custom style sheet right here inside of your document.
Again, you want it to occur last in the string of style sheets, because remember, anything that you put in your custom style sheet you're going to want to override what comes before it, and so if you put this custom.css stylesheet somewhere further up the line, closer to the title tag in the code that I'm working with here, it may not necessarily override the default styling from Bootstrap. Okay, once you've got that in place, File > Save, we can go ahead and take a look at this in Firefox, and if I Refresh the page that I'm working on, you can now see that we have a lovely shade of green behind our text here, and the icons that we put it in, in the previous lesson you can see that we have a nice dark icon, we also have a white icon, we have some white here associated with our block quote, and if we scroll on down the page a little farther, this image here that had that class applied to it, image-polaroid, you can see that it has a nice white stripe around in addition to that thin light gray stripe that goes around it as well.
So that is how you add custom styles to your document. Make sure you put them in a separate style sheet, call it whatever you like, I usually call mine custom.css because it's pretty clear what that is, and then make sure you link it to your document after any other style declarations that are on your page so that it'll override things correctly.
Get unlimited access to all courses for just $25/month.Become a member
58 Video lessons · 66241 Viewers
61 Video lessons · 96758 Viewers
56 Video lessons · 110462 Viewers
82 Video lessons · 105156 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.