TOPIC 3 (MIDTERM) Flashcards

1
Q

are used to define the background effects for elements.

A

CSS Backgrounds

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

specifies the background color of an element.

A

background-color property

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

specifies an image to use as the background of an element. By default, the image is repeated so it covers the entire element. repeats an image both horizontally and vertically. If the image is repeated only horizontally

A

background-image property

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

Showing the background image only once is also specified by the ________

A

background-repeat property

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

To specify that the background image should be fixed (will not scroll with the rest of the page), use the _________

A

background-attachment property

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

its specify the position of the background image, so that it does not disturb the text too much

A

background-position property

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

To make the background fit into the screen you can use percentage in the value of ________

A

background-size property

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

To shorten the code, it is also possible to specify all the background properties in one single property. This is called a ____

A

shorthand property

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

allow you to specify the style, width, and color of an element’s border.

A

CSS Borders

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

specifies what kind of border to display.

A

Border Style

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

what kind of border to display Defines a dotted border.

A

dotted

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

what kind of border to display Defines a dashed border.

A

dashed

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

what kind of border Defines a solid border.

A

solid

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

What kind of border defines a double border

A

double

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

What kind of border Defines a 3D grooved border. The effect depends on the border-color value.

A

groove

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

What kind of border Defines a 3D ridged border. The effect depends on the border-color value.

A

ridge

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

What kind of border Defines a 3D inset border. The effect depends on the border-color value.

A

inset

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

What kind of border Defines a 3D outset border. The effect depends on the border-color value.

A

outset

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

What kind of border Defines no border.

A

none

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

What kind of border Defines a hidden border.

A

hidden

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

specifies the width of the four borders. The ________ can be set as a specific size (in px, pt, cm, em, etc) or by using one of the three predefined values: thin, medium, or thick

A

CSS BORDER WIDTH

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

can have from one to four values (for the top border, right border, bottom border, and the left border)

A

CSS Border Color

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

is used to add rounded borders to an element

A

The border-radius property

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

allows you to specify an image to be used instead of the normal border around an element.

A

border-image property

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

takes the image and slices it into nine sections, like a tic-tac-toe board. It then places the corners at the corners, and the middle sections are repeated or stretched as you specify. Note: For border-image to work, the element also needs the border property set!

A

border-image property

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

are used to set the height and width of an element.

A

height and width properties

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

What value of height and width property is default. The browser calculates the height and width

A

auto

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

What value of height and width Defines the height/width in px, cm, etc.

A

length

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

What value of height and width Defines the height/width in percent of the containing block

A

%

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

What value of height and width Sets the height/width to its default value

31
Q

What value of height and width The height/width will be inherited from its parent value

32
Q

is used to set the maximum width of an element.

A

max-width property

33
Q

can be specified in length values, like px, cm, etc., or in percent (%) of the containing block, or set to none (this is default. Means that there is no maximum width).

A

max-width property

34
Q

The problem with the above occurs when the browser window is smaller than the width of the element (500px). The browser then adds a horizontal scrollbar to the page. in this situation, will improve the browser’s handling of small windows.

A

CSS Max-Width

35
Q

specifies how an element should float.

A

float property

36
Q

specifies what elements can float beside the cleared element and on which side

A

CSS clear property

37
Q

is used for positioning and formatting content e.g. let an image float left to the text in a container.

A

float property

38
Q

What float value that makes the element floats to the left of its container

39
Q

What float value that makes The element floats to the right of its container

40
Q

What float value that makes The element does not float (will be displayed just where it occurs in the text). This is default

41
Q

What float value that makes The element inherits the float value of its parent

42
Q

In its simplest use, the ________ can be used to wrap text around images

A

the float property

43
Q

specifies what should happen with the element that is next to a floating element.

A

clear property

44
Q

What value of the clear property makes The element is not pushed below left or right floated elements. This is default

45
Q

What value of the clear property makes The element is pushed below left floated elements

46
Q

What value of the clear property makes The element is pushed below right floated elements

47
Q

What value of the clear property makes The element is pushed below both left and right floated elements

48
Q

What value of the clear property makes The element inherits the clear value from its parent

49
Q

When clearing floats, you should match the clear to the _________ If an element is floated to the left, then you should clear to the left. Your floated element will continue to float, but the cleared element will appear below it on the web page.

50
Q

specifies the type of positioning method used for an element.

A

position property

51
Q

HTML elements are positioned static by default.

A

Position: static;

52
Q

These elements are not affected by the top, bottom, left, and right properties.

A

Position: static;

53
Q

An element with ________ is not positioned in any special way; it is always positioned according to the normal flow of the page

A

Position: static;

54
Q

An element with_______ is positioned relative to its normal position.

A

Position: relative;

55
Q

Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.

A

Position: relative;

56
Q

is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled. The top, right, bottom, and left properties are used to position the element.

A

Position: fixed;

57
Q

is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).

A

Position: absolute;

58
Q

A fixed element does not leave a gap in the page where it would normally have been located.

A

Position: fixed;

59
Q

if it has an element that has no positioned ancestors, it uses the document body, and moves along with page scrolling.

A

Position: absolute;

60
Q

These elements are removed from the normal flow, and can overlap elements.

A

Absolute Positioned/ Position: absolute;

61
Q

specifies whether to clip the content or to add scrollbars when the content of an element is too big to fit in the specified area.

A

overflow property

62
Q

Default. The overflow is not clipped. The content renders outside the element’s box

63
Q

The overflow is clipped, and the rest of the content will be invisible

64
Q

The overflow is clipped, and a scrollbar is added to see the rest of the content

65
Q

Similar to scroll, but it adds scrollbars only when necessary

66
Q

meaning that it is not clipped and it renders outside the element’s box

A

Overflow: visible;

67
Q

the overflow is clipped, and the rest of the content is hidden

A

Overflow: hidden;

68
Q

the overflow is clipped and a scrollbar is added to scroll inside the box.

A

Overflow: scroll;

69
Q

this will add a scrollbar both horizontally and vertically (even if you do not need it

A

Overflow: scroll;

70
Q

is similar to scroll, but it adds scrollbars only when necessary

A

Overflow: auto;

71
Q

specifies whether to change the overflow of content just horizontally or vertically

A

overflow-x and overflow-y properties

72
Q

specifies what to do with the left/right edges of the content.

A

overflow-x

73
Q

specifies what to do with the top/bottom edges of the content.

A

overflow-y