TOPIC 3 (MIDTERM) Flashcards

(73 cards)

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
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!
border-image property
26
are used to set the height and width of an element.
height and width properties
27
What value of height and width property is default. The browser calculates the height and width
auto
28
What value of height and width Defines the height/width in px, cm, etc.
length
29
What value of height and width Defines the height/width in percent of the containing block
%
30
What value of height and width Sets the height/width to its default value
Initital
31
What value of height and width The height/width will be inherited from its parent value
Inherit
32
is used to set the maximum width of an element.
max-width property
33
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).
max-width property
34
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.
CSS Max-Width
35
specifies how an element should float.
float property
36
specifies what elements can float beside the cleared element and on which side
CSS clear property
37
is used for positioning and formatting content e.g. let an image float left to the text in a container.
float property
38
What float value that makes the element floats to the left of its container
left
39
What float value that makes The element floats to the right of its container
right
40
What float value that makes The element does not float (will be displayed just where it occurs in the text). This is default
none
41
What float value that makes The element inherits the float value of its parent
inherit
42
In its simplest use, the ________ can be used to wrap text around images
the float property
43
specifies what should happen with the element that is next to a floating element.
clear property
44
What value of the clear property makes The element is not pushed below left or right floated elements. This is default
none
45
What value of the clear property makes The element is pushed below left floated elements
left
46
What value of the clear property makes The element is pushed below right floated elements
right
47
What value of the clear property makes The element is pushed below both left and right floated elements
both
48
What value of the clear property makes The element inherits the clear value from its parent
inherit
49
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.
float:
50
specifies the type of positioning method used for an element.
position property
51
HTML elements are positioned static by default.
Position: static;
52
These elements are not affected by the top, bottom, left, and right properties.
Position: static;
53
An element with ________ is not positioned in any special way; it is always positioned according to the normal flow of the page
Position: static;
54
An element with_______ is positioned relative to its normal position.
Position: relative;
55
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.
Position: relative;
56
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.
Position: fixed;
57
is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).
Position: absolute;
58
A fixed element does not leave a gap in the page where it would normally have been located.
Position: fixed;
59
if it has an element that has no positioned ancestors, it uses the document body, and moves along with page scrolling.
Position: absolute;
60
These elements are removed from the normal flow, and can overlap elements.
Absolute Positioned/ Position: absolute;
61
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.
overflow property
62
Default. The overflow is not clipped. The content renders outside the element's box
visible
63
The overflow is clipped, and the rest of the content will be invisible
hidden
64
The overflow is clipped, and a scrollbar is added to see the rest of the content
scroll
65
Similar to scroll, but it adds scrollbars only when necessary
auto
66
meaning that it is not clipped and it renders outside the element's box
Overflow: visible;
67
the overflow is clipped, and the rest of the content is hidden
Overflow: hidden;
68
the overflow is clipped and a scrollbar is added to scroll inside the box.
Overflow: scroll;
69
this will add a scrollbar both horizontally and vertically (even if you do not need it
Overflow: scroll;
70
is similar to scroll, but it adds scrollbars only when necessary
Overflow: auto;
71
specifies whether to change the overflow of content just horizontally or vertically
overflow-x and overflow-y properties
72
specifies what to do with the left/right edges of the content.
overflow-x
73
specifies what to do with the top/bottom edges of the content.
overflow-y