🚨 Heads up! This course is no longer supported. We recommend checking out our Webflow Essentials course.
What are Bootstrap components?
Questions
Student Gallery
Be the first to share something.
Course info
Overview
Know that I’ll be around to help - if you get lost you can message in the forum and together we’ll get you back on track.
- You'll need a copy of Dreamweaver CC 2015 or above. A free 30 day trial can be download from Adobe here.
- No previous Dreamweaver or web design experience is necessary.
- If you're not sure if this course is right for you. Email me what you’re trying to do and check if you’re on the right track.
- 60 lectures 3 hours of content!
- Forum support from me.
- All the techniques used by professional website designers.
- Ways to preview your designs straight to your mobile device.
- Firm understanding of responsive web design.
- Professional workflows and shortcuts.
- A wealth of other resources and websites to help your new career path.
- YES: This course is for beginners. For people who prefer not to work in code. Aimed at people new to the world of web design. No previous Dreamweaver experience is necessary. People with knowledge of previous versions of Dreamweaver CC 2014 and below will also get great value from this course as the software has changed so much.
- NO: This course is NOT suited to people experienced in using HTML & CSS. If you prefer to work in code only then this course isn’t right for you.
Course duration 5.5 hours + your own study.
Daniel Walter Scott
Founder of Bring Your Own Laptop & Chief Instructor
I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.
Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.
Downloads & Exercise files
Transcript
Okay? Just a clickable button and bootstrap. And then we'll make it by ourselves. So, uh, I'm going to go to file New on the Bootstrap. I'm gonna create a new everything. Click create.
Alright. All right, so not a lot happens. Okay? I've got my plain old document, but if I go to insert and I go into button, so I'm in insert form and I'm gonna go to button, I get this, okay, that is a button and it's had some styling applied to it. So I'm gonna save this document now and this is gonna be my Bootstrap test. Bootstrap test.
We're gonna throw this document away. So, um, just a quick little demo. I'm gonna create a completely new file using plain old H Tm L without Bootstrap. Okay? Essentially the same thing to start with, except it doesn't have the backing of Bootstrap. I'm gonna save it.
And this is gonna be called plain Old H Tm L. Okay, so if I add a button here, the difference is the styling really to start off with. Can you see this button? Here is what you expect to see is a button, um, and straight Outta code. And this button here and Bootstrap is slightly more styled. The fonts different.
The, there's a bit of a grading in the background, so, okay, not a big deal. Okay? In terms of the styling, where it becomes quite, um, cool is that, um, let's check, check out Bootstrap some of the bootstrap website. And this is really handy to go back and forward from just to see what is available. You're not gonna remember exactly or every single thing bootstrap can do, but it's good to go in and check and see what it can do every now and again. So if we got a components, uh, there is, um, buttons.
Okay, where are we? Buttons. Buttons, there's button groups, there's all sorts of things to do with buttons. Okay? These are the components. You can see that there are uh, dropdowns, there are input groups as well as buttons.
There are, what else we got? There's navigation in here, there's breadcrumbs, uh, how to put in a jumbotron thumbnails. This is all the pre-made components. We are looking at just the buttons at the moment. Okay? So we've got our button.
Now we're gonna look at the top, go all the way up to the top again and we're gonna look at the CSS that styles these now components. Okay? So there's a whole bunch of pre-made CSS styles as well. So we're gonna go down to buttons and you can see there is, these are my default buttons and we can do, uh, there are options for the buttons, different colors you can use. Uh, there are different sizes, uh, bro level ones. So you can do lots with buttons, okay?
Without having to do all the styling yourself. So let's give that a test. So, um, I got my button selected. I'm gonna add A class. Okay? Class starts with a full stop and this will bring up all of, can you see it says BTN and it'll bring up all the different, um, button options from Bootstrap.
Now one of the ones on that last page is button button slash, sorry, button danger. Okay? And you can see by adding that class called button danger, it's gone red, it's got white text, okay? So that's the kind of things that Bootstrap can do. It's got some pre-made classes. Now to do the same thing here in our H TM O document, I'm going to go to CSS designer and I guess I'm just trying to prove, uh, the validity of bootstrap or at least show you, it's um, at least show you why people love it so much.
So I'm gonna add a new CSS sheet, which is great. I'm gonna call this one, uh, plain old, okay? I'm gonna make a selector called uh, button Dan. Okay? And I'm gonna say I'm gonna try and start it the same way. So I'm gonna apply that button now, even though it's got no, no actual, um, attributes, I've applied it, great, it's not doing anything.
So I'm gonna make it have a background color of red. Oops, what am I styling buttons. Oops. What am I styling? I've applied my class to this body tag, which is the underlying one, not the actual button itself. That's what I'm meant to click.
You can see how easy it is, button or the body. Okay? So I'm going to remove it from the body, click on my button and apply that very same class. I should go through and delete that sort of stuff, but it's the kind of problems you're gonna run into. So I leave them in there. I like to pretend like it's a part of my training just to show you what could happen.
But really it's just me getting lost. But we're back. So this button here, okay, has got a class name button, Dan linked to it. I've made it red, I've gone to my type here and I'm gonna make it white, okay? It needs a bit of padding. So I'm gonna go up to this top one here called layouts and I'm gonna make it have some padding around the outside.
So it's gonna have padding of maybe five at the top, 10 on the sides, maybe 15 on the sides, five on the top 10 there. Great. Okay, the font needs to be centered in here. Now can you start to see the time saving by using Bootstrap? Okay, so I'm nearly there as in, I'm almost getting this thing to um, do the same as this. It's not the same, okay?
But it's kind of saved a bit of time. Now this is one little tiny part. So buttons are really small. You can imagine where it becomes a whole lot more quicker using Bootstrap when you start looking at like an image carousel where there's lots of bits and pieces to it. Start building it yourself. Could be a two day project, whereas I'll show you in a second how it's just a drag and drop using Bootstrap.
So, um, let's have a look at back to the Bootstrap version. There Are lots of different CSS classes that you can apply. Can you see here? And there's the options. So we picked Danger, but there's some other ones, uh, we can go through and there's sizes. And all you need to know though is these namings here.
You won't remember them off, off by heart, don't worry. But say I wanna apply this button large, all I need to do is um, type this in, see the full stop from making it a class. And then BTN Hyen large. So if I come in here and I go full stop, BTN Hyen large, it's a large button, okay? Some of the bits on the other side was, there was something called button lock. Uh, so BTN actually do btn.
There's one they called Block and that just makes it go full screen, okay? So it's a giant button that kind of spreads out to the edges of its container. So then to go off and start building this and plain old HTML, I could definitely do it no problem at all, but I'm gonna be playing around for a long time to try and get up to speed with, uh, bootstrap. So it's just a time saver. Now let's look at some of the magical bits of these components. So button pretty boring, Dan.
So let's go and, uh, delete him. So I'm gonna click on my button, delete. What I wily want to do is look at some of the really cool things and we're gonna look at them properly later on, but at the moment, I guess it's just a little fly through where I can say form bootstrap components. And these are the things that are kind of pre-made. If you look at the bootstrap sides, um, right at the top here, okay, these are the components. So Dreamweaver, there's a bunch of 'em on the side here, okay?
And Dreamweaver's incorporated a lot of them in itself, okay? To make it easier to apply rather than copy and pasting code across, you just have to click some of these things. So let's look at one of the more exciting ones. So let's look at, uh, the carousel. Okay? And I want to design my own carousel.
A, you wouldn't, but B, even if you found somebody else's carousel to implement in your site, it'll take a lot of working around to try and get going. Then will it work on all browsers? Probably, maybe. But I know Bootstraps are pretty good at working on all sorts of different browsers and sizes and devices. Let's click carousel. Voila, one button and a carousels being added.
I'm gonna preview this in a browser, so I'm gonna save my document. I'm gonna go down preview on a browser and I've now got a responsive carousel. Can you see it adjusts, works with different sizes. Click the button, moves across. And all I need to do now as a designer is go through and okay, there's lots of things I don't like about it. Like I don't need potentially this text or the second text, but I can turn that off quite easily.
And the image in the background here with the crazy, uh, the, with the ugly white striper around the outside, I can go through and adjust that and change it with my own images. It's pretty damn amazing. And that's why people love Bootstrap. It's quick, it's easy, it's a installs, a pretty plain Jane version of what you need. But it's all done. All the bugs are worked out of it mostly, and you can go through and add your own style to it very quickly and easily.
What are Bootstrap components, and why should I use them?
Bootstrap components are ready-made interface elements, such as buttons, navigation and carousels, that you can add to a website without building everything from scratch. They give you a styled, working starting point, saving time on both appearance and behaviour while still letting you customise the result to suit your design.
What Are Bootstrap Components? Buttons and Carousels in Dreamweaver
Key Takeaways
See how Bootstrap saves time compared with styling plain HTML yourself.
Use ready-made button classes to change colour, size and width.
Avoid a common Dreamweaver mistake: applying a class to the wrong element.
Insert a responsive carousel, test it in a browser and make it your own.
Use Bootstrap’s documentation as a reference rather than memorising every option.
Bootstrap Gives You a Starting Point, Not Just a Grid
Bootstrap’s components are worth exploring before getting into its grid system. These are the useful little pieces of a website that someone has already put together for you. Some are simple, like buttons. Others, like an image carousel, have quite a few moving parts.
The easiest way to understand their value is to make the same thing twice: once with Bootstrap and once with plain HTML and your own CSS.
You can build either version yourself. The difference is how much time you spend getting it into shape, and how much of the initial work Bootstrap handles for you.
Start with a Simple Button
Create a Bootstrap test document
In Dreamweaver, create a new document using the Bootstrap option:
Choose File > New.
Select the Bootstrap setup and create the new supporting files.
Click Create.
In the Insert panel, choose Form > Button.
Save the document with a name such as Bootstrap Test.
At first, there is not much to get excited about. You have a blank page with a button on it. But that button already has styling supplied by Bootstrap, rather than relying entirely on the browser’s default appearance.
Create a plain HTML comparison
Next, create a separate HTML document without Bootstrap, save it as something like Plain Old HTML, and insert another button.
The plain HTML button looks like the standard button you would expect straight out of the browser. The Bootstrap version has a different font and a more styled background. In this setup, there is also a slight gradient.
That initial difference is fairly small. A slightly nicer button is useful, but it is hardly magical. The real benefit appears when you start changing it.
Find the Options in Bootstrap’s Documentation
Keep the Bootstrap website handy. You are not going to remember every component or every class name, and you do not need to.
The component library includes things such as:
Button groups and dropdowns
Input groups
Navigation
Breadcrumbs
Jumbotrons
Thumbnails
In the documentation used for this example, the basic button styling lives in the CSS section under Buttons. Related features, such as button groups and dropdowns, appear in the components section.
The button reference shows colour options, different sizes and block-level buttons. Instead of creating each variation yourself, you apply the appropriate ready-made class.
The button reference gives you ready-made colour options and the classes that apply them.
Turn the Button Red with a Class
Select the button in your Bootstrap document and use Dreamweaver’s Add Class control. Entering a dot followed by btn brings up suggestions for Bootstrap’s button classes.
Add btn-danger, keeping the button’s base btn class. The button becomes red with white text. That is the whole point: Bootstrap already contains the styling, so you only need to select it.
A small naming detail matters here: a dot identifies a class selector in CSS and in this Dreamweaver workflow. The class name itself is btn-danger, without the dot.
No new stylesheet, no colour picker and no manual spacing adjustments. Just a class applied to the right element.
Build the Same Button Manually
Now return to the plain HTML document and try to produce a similar result. This is where the time comparison becomes a little more convincing.
Open CSS Designer.
Create and link a new stylesheet, with a name such as plain-old.css.
Create a custom class selector, such as .btn-dan.
Apply that class to the button.
Set the background colour to red.
Set the text colour to white.
Add padding to give the label some breathing room.
Adjust the text alignment so the label is centred.
For this quick comparison, you can experiment with around five pixels of padding at the top and bottom, and ten to fifteen pixels on the sides. You are adjusting the space inside the button, between its text and its edges.
You will get something resembling the Bootstrap version, but matching it still takes more fiddling. And this is only one tiny button.
If the whole page turns red, check your selection
Here is a very easy mistake to make in Dreamweaver: you think you have selected the button, but you have actually selected the body element underneath it.
Apply your red-background class to the body and the page turns red instead of the button. Oops. The CSS is doing its job, just on the wrong element.
Remove the class from the body, select the actual button and apply the same class again. Before changing your CSS, check which element has the class. It can save you a lot of unnecessary troubleshooting.
The manual approach is perfectly possible. You control each styling decision yourself. Bootstrap’s advantage is that it gets you to a useful result much more quickly.
Change Button Size and Width Just as Quickly
Colour is only one option. The same class-based approach lets you change the button’s size and how much space it occupies.
btn-lg: makes the button larger.
btn-block: makes the button stretch across the width of its container.
In the Bootstrap setup used here, these classes can be added alongside btn and btn-danger. The colour, size and width choices work together.
A block-level button does not necessarily fill the entire screen. It fills its containing element. On an otherwise empty page, that can look like a giant button running from one side to the other.
Use the documentation that matches your project’s Bootstrap setup to check the available class names. You do not need them all memorised. Knowing where to find them is enough.
The block button fills its container without manually setting its width.
Add a Responsive Carousel in Dreamweaver
Buttons are a handy introduction, but a carousel makes the time saving much more obvious.
Building an image carousel yourself means dealing with several pieces, not just colours and padding. Even adopting somebody else’s carousel can take time to integrate. Then there is the question of how well it behaves across browsers, screen sizes and devices.
Bootstrap gives you a ready-made starting point for that work. Dreamweaver incorporates many Bootstrap components into its Insert panel, so you can add them without copying and pasting their markup from the documentation.
Insert and test the carousel
Return to the Bootstrap document and delete the test button.
Switch the Insert panel to Bootstrap Components.
Choose Carousel.
Save the document.
Use Preview in a Browser.
Resize the browser window to check how the carousel adjusts.
Use the arrow controls to move between slides.
One selection inserts a complete starter carousel. In the browser, it responds to changes in width, and its controls move between the slides.
That is a much more substantial head start than a styled button. Rather than spending your time assembling the basic interaction, you can get on with adapting it to your site.
The starter carousel already has slide controls and placeholder content ready to customise.
Make the Starter Component Your Own
The inserted carousel is a fairly plain Jane version, and that is fine. It is not supposed to arrive with your finished design already attached.
You may not want the default heading or the secondary text. You will almost certainly want to replace the placeholder images. The white space around the starter image may need adjusting too.
Your next job is to:
Remove or change the text you do not need.
Replace the placeholder images with your own.
Adjust the appearance to fit your design.
Preview the result again at different widths.
Bootstrap does not mean that every possible bug has disappeared, or that you can skip testing. It does mean that much of the common groundwork has already been handled.
That is why Bootstrap components are so useful: you start with something that works, then spend your effort making it look right. The more complicated the component, the more valuable that head start becomes.
Key Terms
Bootstrap component
A ready-made interface element supplied by Bootstrap. Examples include dropdowns, navigation and carousels.
CSS class
A name applied to an HTML element to connect it with styling rules. Bootstrap supplies existing classes, such as btn-danger, so you do not have to write those rules yourself.
Padding
The space inside an element, between its content and its edges. On a button, padding gives the text room rather than leaving it pressed against the border.
Block-level button
A button that stretches across the width of its container. In the Bootstrap setup demonstrated here, this is applied using btn-block.
Responsive carousel
A slideshow component that adjusts to different available widths. Its controls let you move between slides.
FAQs
Do I need to memorise Bootstrap’s classes?
No. Use the documentation to look up the colour, size or component options you need. Dreamweaver’s class suggestions can also help you find available classes.
Can I customise Bootstrap components?
Yes. The default component is a starting point. You can replace images, remove unnecessary text and adjust the styling to suit your website.
Why did my button class change the whole page?
The class may have been applied to the body element rather than the button. Remove it from the body, select the button itself and apply the class there.
Is Bootstrap faster than writing my own CSS?
For the examples here, yes. Ready-made classes save styling time on buttons, while a carousel provides an even bigger head start because its basic structure and interaction are already in place.
Written by Daniel Walter Scott — Founder of Bring Your Own Laptop & Chief Instructor