Bootstrap reminders Flashcards

1
Q

simple nav

A

ul. nav
li. nav-item
a. nav-link.active
li. nav-item
a. nav-link
li. nav-item
a. nav-link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

creating a simple nav-bar with brand

A

nav. navbar.navbar-expand-sm.navbar-dark.bg-dark
a. navbar-brand
ul. navbar-nav
li. nav-item
a. nav-link.active
li. nav-item
a. nav-link
li. nav-item
a. nav-link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

components of a mobile-friendly navbar

A

A button that shows up on mobile size:

button. navbar-toggler:data-toggle=’collapse’:data-target=’#target1’
span. navbar-toggler-icon

A container holding the normal nav that is normally collapsed unless in mobile sizes:

div.navbar-collapse.collapse#target1
   //normal nav...
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

simple dropdown

A

a container holding the dropdown content and dropdown toggle:

div.dropdown

a dropdown toggle:

button.dropdown-toggle:data-toggle=’dropdown’

a dropdown menu with the links:

div. dropdown-menu
a. dropdown-item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Simple alert

A

div.alert.alert-[color]

“message”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

alert with link

A

div.alert.alert-[color]

“message” span.alert-link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

alert with heading

A

div. alert.alert-[color]

h4. alert-heading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

alert with horizontal divider

A

div.alert.alert-[color]
“message”
hr
“message 2”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

alert with close button

A

div.alert.alert-[color]
“message”
button.close:data-dismiss=’alert’ ×

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

grid system

A

div. row
div. col
div. col
div. row
div. col

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

col class that expands when in small size an shrinks when in medium

A

div.col-md-3.col-sm-12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

center content with flexbox when on medium size

A

div.d-flex.justify-content-md-center

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

offsetting a column by:
3 on medium;
by 4;
2 on small;

A

offset-md-3;
offset-4;
offset-sm-2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

make images responsive

A

img.img-fluid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

give image a 1px rounded border

A

img.img-thumbnail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

create a simple table

A
table.table
thead
  tr
      th
      th
tbody
  tr
      th
      th
  tr
      th
      th
17
Q

change table overall theme color to dark;

change table head color to light

A

table. table-dark

thead. thead-light

18
Q

make table body vary between two background colors

A

table.table-striped

19
Q

make table bordered;

make table borderless.

A

table. table-bordered

table. table-borderless

20
Q

simple breadcrumb

A

nav

ol. breadcrumb
li. breadcrumb-item.active

21
Q

create an agroupment of buttons

A

div. btn-group
button. btn
button. btn
button. btn

22
Q

create an agroupment of agroupments of buttons

A

div. btn-toolbar
div. btn-group
button. btn
button. btn
button. btn
div. btn-group
button. btn
button. btn
button. btn

23
Q

make a button agroupment large;

and small;

A

div. btn-group-lg

div. btn-group-sm

24
Q

make an input with some prepended data

A

div. btn-group
div. btn-group-prepend
div. btn-group-text
input. form-control

25
Q

make a simple card with card-body

and an image appearing on top

A

div. card
img. card-img-top
div. card-body
h3. card-title
p. card-text

26
Q

make a card with 2 links at the bottom

A

div. card
div. card-body
p. card-text
a. card-link
a. card-link

27
Q

make a button that collapses a card

A

button.btn.btn-primary:data-target=’#id’:data-toggle=’collapse’

div.collapse#id
div.card.card-body
p