Visual Design Flashcards

1
Q

How do you align text?

A

text-align:

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

What options does the text-align property have?

A

text-align: justify; causes all lines of text except the last line to meet the left and right edges of the line box.

text-align: center; centers the text

text-align: right; right-aligns the text

And text-align: left; (the default) left-aligns the text.

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

Which tag can you use to bolden text?

A

strong

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

Which tag can you use to underline text?

A

u

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

Which tag can you use to emphasise/italicize text?

A

em

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

Which tag can you use to strikethrough text?

A

s

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

Which tage can create a horizontal line between 2 elements

A

hr

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

what does rgba stand for?

A

red, green, blue, alpha/level of opacity

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

How do you add a shadow to an element?

A

box-shadow

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

what are the properties of box-shadow?

A
offset-x
offset-y
blur-radius
spread-radius
colour

In that order

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

What property adjusts the opacity of an element?

A

opacity

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

What property can be used to change the appearance of text in an element?

A

text-transform

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

what are the possible values of the text-transform property

A

lowercase, uppercase, capitalize, initial, inherit, no

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

What property changes the amount of vertical space each line gets?

A

line-height

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

What’s is a pseudo-class

A

A pseudo-class is a keyword that can be added to selectors, in order to select a specific state of the element.

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

What pseudo-class is used for when the user is hovering over an element?

A

:hover

17
Q

What is the difference between fixed and absolute positioning?

A

Fixed positioning stop the element from moving witrh the scroll wheel

18
Q

How do you order overlapping elements?

A

z-index:

higher values will appear on top

19
Q

How do you center an element on a page?

A

margin: auto;

20
Q

How do you create a linear gradient?

A

background: linear-gradient(gradient_direction, color 1, color 2, color 3, …);

21
Q

What property would you use if you want a linear gradient to repeat?

A

repeating-linear-gradient

22
Q

How do you change the scale of an element?

A

transform: scale();