CSS Flashcards

1
Q

CSS

A

Cascading style sheets

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

GOLDEN RULE
CSS
separation of concern

A

Style

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

CSS examples

A

Style, Color, Positioning

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

An_____can wrap text Inside a paragraph
<span>Like this</span>
Without disrupting the flow of that paragraph. I. E. Span

A

Inline element

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

When you set box-sizing: border-box; on an element, the padding and the border of the element no longer increase its width. They are the_____.

A

Same size

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

Another common display value is_____. Some specialized elements such as script use this as their default. It is commonly used with JavaScript to hide and show elements without really deleting and recreating them.

A

None

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

Box model:
.simple vs .Fancy with the same width and margins.

A

.Simple equals smaller
.Fancy equals bigger
Two elements with the same width value end up different sizes in the result.

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

How do you select an element next to direct descendent? (Parent child)

A

P > P{
Color: red;
}
This is red

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

How do you select an element without to a direct Descendent.. (grandchild)

A

(Section space P)
section P{
Color: red;
}
Section
Article
<p>this is red</p>

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

How do you select a next sibling descendent parent child relationship? (Next sibling)

A

P + p{
Color: red;
}
Section
<p>Hello twitch</p>
<p>This is red</p>

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

What is this?
P{
Color: red ;
Don’t weight: bold;
}

Everything in brackets, except for p.

A

Declaration box

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

What is this?
P{
Color: red ;
Font weight: bold;
}

The color and font weight.

A

Properties

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

What is this?
P{
Color: red ;
Don’t weight: bold;
}

Red and bold.

A

Values

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

What is this?
P{
Color: red ;
Font weight: bold;
}

Font weight and bold or color and red.

A

Decorations

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

What is this?
P{
Color: red ;
Don’t weight: bold;
}

The P

A

Selector

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

What is this?
P{
Color: red ;
Don’t weight: bold;
}

Everything

A

Rule

17
Q

Setting display to_____will hide the element, but the element will still take up the space it would if it was fully visible.

A

Visibility: Hidden;

18
Q

CSS separation of concern is_______.

A

Style

19
Q

_____Is the standard block level element. A block level element starts on a new line and stretches out to the left and right as far as that can.

A

div

20
Q

Why do we link to a separate CSS file?

A

Separation of concerns
(Organization)

21
Q

What type of relationship is this?
Parent>child?

A

Direct

22
Q

What type of relationship is this?
Parent child

A

Not direct
It says find me something inside some thing that’s not directly Descended. It does not matter how deep it is.
Grandchild

23
Q

What type of relationship is this?
Previous sibling + next sibling
P + p

A

Select an element that is next to a sibling

24
Q

In a box model, what moves content around? (BULLY)

A

Margin