CSS MARGINS Flashcards

1
Q

css margins

A

The CSS margin properties are used to create space around
elements, outside of any defined borders.

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

css margins

A

The CSS margin properties are used to create space around
elements, outside of any defined borders.

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

properties

A
  • margin-top
  • margin-right
  • margin-bottom
  • margin-left
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

shorthand property

A

shorten- 1 syntax
* margin-top
* margin-right
* margin-bottom
* margin-left

*margin: 25px 50px 75px 100px;

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

if only 3 values

A

*margin: 25px 50px 75px;
*top margin is 25px
*right and left margins are 50px
*bottom margin is 75px

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

If the margin property has two values:

A

*margin: 25px 50px;
*top and bottom margins are 25px
*right and left margins are 50px

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

1 property value

A

*margin: 25px;
*all four margins are 25px

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

AUTO VALUE

A
  • horizontally
    center the element within its container.
div {
width: 300px;
margin: auto;
border: 1px solid red;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

inherit value

A

inherits value from parent (div)

div {
border: 1px solid red;
margin-left: 100px;
}

p.ex1 {
margin-left: inherit;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

outline ofset

A
  • adds space between an outline and the
    edge/border of an element.
  • space is transparent

outline; 1px solid red;

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