CSS Flashcards

1
Q

How to add CSS styles

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

How to add CSS styles

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

place text in center of page

A

text-align: center;

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

place text in center of page

A

text-align: center;

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

CSS syntax

A

h1 {
color: aquamarine;
}

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

CSS commands

A
Color: ;
background-color: ;
text-align: ;
font-weight: ;
text-decoration: ;
letter-spacing: ;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how to add a font type in CSS

A

font-family: add a few in case browser doesn’t support

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

how to add opacity in rgb for a background color

A

rgba(255, 255, 255, 0)

last number is 0-1

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

how to add opacity to an entire element

A

{
opacity: 0.3;
}
(opacity is 0 to 1?)

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

how to add opacity to a bakcground color in hexidecimal

A

last part of hexidecimal is from 00 for completely transparent to FF for not transparent at all

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

designate position on document and options for position

A

position: relative

relative, static, absolute, right, left

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

position that keeps an element in the same area regardless of other things like margins etc

A

static

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

allows you to put top and left relative to where it normally would be…

A

relative

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

to remove element from normal doc flow and no spaces for element & position relative to closest ancestor (means that it stacks the element on top of anything else that may be there)

A

absolute

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

to remove element from normal doc flow and no spaces for element & position relative to initial containing block (so if you scroll on page, it will stay for example floating at top of screen)

A

fixed

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

position element so it stays in place until your scrolling would cause it to go out of screen, then it stays floating at top

A

sticky