In this video, Ray Villalobos shows one of the new, but small features in the new version of Bootstrap—the badge classes—which make elements look like pills and tags and are often used as design elements in some websites.
- [Instructor] One of the small, new…features in Bootstrap…is the addition of a class for badges.…I really like this new addition,…so let's take a look.…Here, you can see that…the main class for badges is called badge,…and then, in addition to that, you have…a slightly different shape for the badges…called badge-pill.…You can also use the traditional…contextual classes,…default, primary, success, info, et cetera, et cetera.…One thing about badges is…that they are contextual, so they will resize…according to the container.…
So, let's take a look at how that works…in real life.…Let's go ahead and go to the top of this,…and we'll convert this…to just a span.…Usually, badges go in spans,…and we'll give this a class…of badge…and we'll also use the badge-default,…and now this gets this size font.…Let's just go ahead and grab…this one from here,…and we'll kind of add a badge…to this grooming section.…
We'll call it new, here,…and we'll use the…danger contextual class.…So, if we scroll down here,…you should see grooming get this new badge.…
- Creating a basic template
- Reviewing basic styles and typography
- Using colors with Bootstrap
- Working with classes that help you deal with images
- Working with grid containers
- Offsetting columns
- Using list groups to style lists, buttons, and links
- Using breadcrumbs
- Reviewing layout components
- Using form styles
- Working with interactive components
Skill Level Beginner
Responsive CSS with Sass and Compasswith Ray Villalobos3h 22m Intermediate
Building a Responsive Single-Page Design with Sasswith Ray Villalobos4h 55m Intermediate
1. Getting Started
2. Using Basic Styles
3. Mastering Layout with Bootstrap
4. Using Navs and Navbar Components
5. Basic Style Elements
6. Layout Components
7. Using Form Styles
8. Working with Interactive Components
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.