Fixed Positioning Flashcards

1
Q

What is a positioned element?

A

A positioned element is one that have had its position property changed from its default values.

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

What is positioning?

A

Positioning governs how elements are laid on a page and how the position adjusting properties of top, right, bottom and left affect elements.

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

Give the values of the CSS position property.

A
  1. Static ( The default)
  2. Fixed
  3. Absolute
  4. Relative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What position properties does flexbox reduce the use case of?

A

Absolute and relative.

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

Give four points explaining static elements.

A
  1. It is the default for all elements.
  2. It means that elements follow the “flowing text” model of layout.
  3. It totally ignores the position adjusting properties of top, right, bottom and left.
  4. The only properties that influence it are margins, paddings, floats, and display properties such as block, inline, inline-block, etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give all the characteristics you know of fixed elements.

A
  1. Fixed elements totally respect the position adjusting qualities of top, right, bottom and left.
  2. Fixed elements stick to the top, bottom, or side of the page and will not scroll with the rest of the page.
  3. Fixed elements do not contribute to the size of their parent.
  4. Unlike static and relative positioned block level elements which take the width of their parent container, fixed and absolute block elements do not and in fact, the initial width of a fixed element is its content area although that can be changed.
  5. Unlike static and relative block elements where margins can be used to adjust an element and keep neighboring siblings away, fixed and absolute elements cannot use the margin property to keep neighboring siblings away to fight crowding.
  6. Fixed and absolute elements can use the position adjusting properties of top, right, bottom and left to size an element and leave the dimensional properties of width and height unchanged and the fixed positioned (or absolute positioned) element will grow or shrink based on the size of the window.
    NOTE: This feature is only available to fixed and absolute positioned elements.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is fixed positioning?

A

Fixed positioning places an element in a location that is relative to the browser window (rather than the page) hence fixed elements never move!

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

What is a fixed positioned element?

A

A fixed positioned element is an element that has been placed against the viewport and will not scroll with the rest of the page.

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