Podcast
Questions and Answers
How can you create a block level button that spans the entire width of the parent element?
How can you create a block level button that spans the entire width of the parent element?
What is the purpose of the .gap-* class in Bootstrap?
What is the purpose of the .gap-* class in Bootstrap?
What is the effect of adding the .active class to a button?
What is the effect of adding the .active class to a button?
What is the purpose of the .btn-lg class in Bootstrap?
What is the purpose of the .btn-lg class in Bootstrap?
Signup and view all the answers
How can you make a button unclickable in Bootstrap?
How can you make a button unclickable in Bootstrap?
Signup and view all the answers
How many outline/bordered buttons are provided by Bootstrap?
How many outline/bordered buttons are provided by Bootstrap?
Signup and view all the answers
What is the purpose of the btn-group-lg class in Bootstrap?
What is the purpose of the btn-group-lg class in Bootstrap?
Signup and view all the answers
What is the purpose of the data-bs-toggle attribute in Bootstrap?
What is the purpose of the data-bs-toggle attribute in Bootstrap?
Signup and view all the answers
What is the purpose of the dropdown-divider class in Bootstrap?
What is the purpose of the dropdown-divider class in Bootstrap?
Signup and view all the answers
How do you create a vertical button group in Bootstrap?
How do you create a vertical button group in Bootstrap?
Signup and view all the answers
What is the purpose of the active class in Bootstrap?
What is the purpose of the active class in Bootstrap?
Signup and view all the answers
What is the purpose of the dropdown-header class in Bootstrap?
What is the purpose of the dropdown-header class in Bootstrap?
Signup and view all the answers
What class is used to create a disabled item in a dropdown menu?
What class is used to create a disabled item in a dropdown menu?
Signup and view all the answers
What class is used to create a dropdown menu that expands upwards?
What class is used to create a dropdown menu that expands upwards?
Signup and view all the answers
What is the default height of a progress bar?
What is the default height of a progress bar?
Signup and view all the answers
How do you change the height of a progress bar?
How do you change the height of a progress bar?
Signup and view all the answers
What is the default color of a progress bar?
What is the default color of a progress bar?
Signup and view all the answers
How do you add a label to a progress bar to show the visible percentage?
How do you add a label to a progress bar to show the visible percentage?
Signup and view all the answers
Study Notes
Bootstrap Buttons
- Bootstrap provides different styles of buttons that can be used on
<a>
,, or
elements. - Button sizes can be controlled using
.btn-lg
for large buttons and.btn-sm
for small buttons. - Bootstrap also provides eight outline/bordered buttons that have a hover effect.
- Block-level buttons can be created using the
.d-grid
class on the parent element, and the space between them can be controlled using the.gap-*
class. - A button can be set to an active (appear pressed) or a disabled (unclickable) state using the
.active
class and thedisabled
attribute respectively.
Bootstrap Button Groups
- A button group can be created by wrapping buttons in a container with the
.btn-group
class. - Instead of applying button sizes to every button in a group, the
.btn-group-lg
and.btn-group-sm
classes can be used for large and small button groups respectively. - Vertical button groups can be created using the
.btn-group-vertical
class.
Bootstrap Dropdowns
- A dropdown menu is a toggleable menu that allows the user to choose one value from a predefined list.
- The
.dropdown
class indicates a dropdown menu. - The
.dropdown-menu
class is used to build the dropdown menu, and the.dropdown-item
class is used for each item inside the menu. - The
.dropdown-divider
class can be used to separate links inside the dropdown menu with a thin horizontal border. - The
.dropdown-header
class is used to add headers inside the dropdown menu. - An item in the dropdown menu can be highlighted with the
.active
class, and disabled with the.disabled
class. - The dropdown menu can be positioned as "dropend" or "dropstart" by adding the
.dropend
or.dropstart
class to the dropdown element.
Bootstrap Progress Bars
- A progress bar can be used to show how far a user is in a process.
- A default progress bar can be created by adding the
.progress
class to a container element and the.progress-bar
class to its child element. - The width of the progress bar can be set using the CSS
width
property. - The height of the progress bar is 1rem (usually 16px) by default, and can be changed using the CSS
height
property. - Labels can be added inside the progress bar to show the visible percentage.
- Progress bars can be customized with different colors.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
This quiz covers the basics of Bootstrap buttons, including button styles, sizes, and outline/bordered buttons. It is based on Lecture 4 by Miss. Dina Y. Mikhail for ISED Second stage.