Bootstrap Flashcards

1
Q

You can add Bootstrap to any app by adding the following code to the ___ of your HTML:

A

top

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

close the link tag

A

using either > or /> is acceptable

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

how to make the image be exactly the width of the phone screen?

A

add img-responsive class to the image

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

how to center heading element?

A

add the class text-center to the h element

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

add several classes to the same element

A

by separating them with a space

<h2 class="red-text text-center"></h2>

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

create a button

A

add class of btn and btn-default

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

by default, your button elements with the btn and btn-default classes are ___ (related to text they contain)

A

only as wide as the text that they contain

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

stretch button to fill your page’s entire horizontal space …

A

By making them block elements with the additional class of btn-block

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

what will happen to any elements following button block?

A

any elements following button block will flow onto a “new line” below the block

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

other flavor of btn-default

A

btn-primary, to color it blue

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

btn-info use case

A

used to call attention to optional actions

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

style button red for delete/destroy

A

btn-danger

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

make a row of elements to be styled

A

div class=”row”

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

make blue primary text

A

text-primary

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

use ____ to target inline elements

A

span

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

by using inline span element you can

A

put several elements on the same line, and even style different parts of the same line differently

17
Q

nest a header and image together on one line

A

<div>
<div>Text</div> //8 columns
<div>Image</div> // the remaining 4/12
</div>

18
Q

i class in html - use case

A

icons, <i></i> // using Font Awesome for ‘fas’

span is also acceptable for icons

19
Q

how to make the radio buttons in a form spread out evenly?

A

use the col-xs-* approach, same as with divs

20
Q

house everything in a responsive container

A

div class=’container-fluid’

21
Q

a class to create a visual sense of depth for columns

A

class=’well’

22
Q

Sometimes we create classes just …

A

for the purpose of selecting these elements more easily using jQuery. Not every class needs to have corresponding CSS.