In this video, Ray Villalobos uses modals to show and hide content while also dimming other page content using an overlay that highlights a specific action. There are many other options for header and footer content within modals.
- [Instructor] Modals allow you to show and hide content…that is in an element…showing up as an overlay on top of your page.…Like with other components,…modals have two parts: the trigger,…which can be a button or a link, as well as…a piece of content that you want to show in the modal.…If you use a link, you'll need to target an ID…that you want to use as your modal.…If you're using a button,…then you use the data-target attribute.…The link, or the button, will need…a data-toggle="modal" attribute.…
Now the content you want to show as the modal…needs to have the modal class.…So this is our main container for the entire element.…In addition to the modal class,…there's some other classes that set up the structure…of how your modal works.…Modal-dialog is an extra container…that is used for some additional spacing.…There's another container class called modal-content…that you can use for the main content of the modal.…You can also use an optional header…for a title in your modal,…and you should probably use a header in all your modals.…
- 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.