IES: CSS-deck 8 Flashcards
Assigning a non-default value to an element position property allows what?
An element’s place moves from the normal flow to where it can be independently positioned is allowed by assigning a \_\_\_\_\_
value to the element’s position property.
Alternatives to the default “static” value:
“Absolute”, “relative”, “fixed”, and “sticky” are keywords specifying alternative to the normal flow layout.
The positioning schemes, “absolute”, “relative”, “fixed”, and “sticky;” each use one or more of which CSS “offset” properties: to define the element’s position.
Which positioning schemes use one or more of the CSS offset properties: “top,” “right,” “bottom,” and “left;” to define what?
“Absolute” positioning: places the element at the specified offset distance from the \_\_\_\_\_
of its containing element.
(an absolutely positioned division element with top and left values of 100px will be positioned how?)
\_\_\_\_\_
positioning places the element at the specified offset distance from the boundaries of its containing element.
(An \_\_\_\_\_
positioned division element with \_\_\_\_\_
and \_\_\_\_\_
values of 100px will be positioned 100px below and 100px to the right of its containing element boundaries.)
\_\_\_\_\_
positioning adjust the element position \_\_\_\_\_
to the place it would originally occupy in normal flow layout.
(Ex. top value: \_\_\_\_\_
px; left value: \_\_\_\_\_
px; = Element moves up 18px and 100px to the right. Regardless, the \_\_\_\_\_
\_\_\_\_\_
by its original layout position is preserved.)
“Relative” positioning adjust the element position relative to the place it would \_\_\_\_\_
\_\_\_\_\_
in normal flow layout.
(Ex. top value: -18px; left value: 100px; = Element moves \_\_\_\_\_
18px and 100px to the \_\_\_\_\_
. Regardless, the space occupied by its original layout position is \_\_\_\_\_
.)
When a page is \_\_\_\_\_
, absolute and relative elements move along with the rest of the page.
When a page is scrolled, \_\_\_\_\_
and \_\_\_\_\_
elements move along with the rest of the page.
\_\_\_\_\_
positioning may typically control the position of the outer element.
“Absolute” positioning may typically control the position of the \_\_\_\_\_
\_\_\_\_\_
.
“Relative” positioning is often useful to control the position of \_\_\_\_\_
\_\_\_\_\_
\_\_\_\_\_
.
\_\_\_\_\_
positioning is often useful to control the position of nested Inner elements.
Fixed positioning completely removes the content box from the \_\_\_\_\_
\_\_\_\_\_
\_\_\_\_\_
and positions it relative to the \_\_\_\_\_
or the \_\_\_\_\_
\_\_\_\_\_
.
\_\_\_\_\_
positioning completely removes the content box from the normal flow layout and positions it relative to the viewport or the browser window.
Fixed: Usefully, elements can be fixed to maintain a constant position regardless of \_\_\_\_\_
\_\_\_\_\_
.
\_\_\_\_\_
: elements, like a logo, can be set to maintain a \_\_\_\_\_
position regardless of page scrolling.
As of 2019 and possibly 2020, the Safari web browser did not support the sticky positioning scheme.
Until implemented, a position : -webkit-sticky ; rule is required for this browser
Sticky positioning: ensures element \_\_\_\_\_
regardless of page scrolling.
Sticky positioning: ensures element visibility regardless of \_\_\_\_\_
\_\_\_\_\_
.
Sticky positioning: initially -places and maintains element \_\_\_\_\_
\_\_\_\_\_
\_\_\_\_\_
\_\_\_\_\_
; assumes a sticky or fixed position -when scrolling effects the element reaches a specified offset position in the viewport.`
Sticky positioning: initially -places and maintains element relative to other Sticky positioning: initially -places and maintains element relative to other elements; assumes a sticky or fixed position -when scrolling effects the element reaches a \_\_\_\_\_
\_\_\_\_\_
position in the viewport.
Sticky positioning: \_\_\_\_\_
\_\_\_\_\_
to the specified offset position causes the element to resume its relative positioning.
Sticky positioning: scrolling back to the specified offset position causes the element to \_\_\_\_\_
\_\_\_\_\_
\_\_\_\_\_
positioning.
Sticky positioning: As with \_\_\_\_\_
positioning, element positions can be \_\_\_\_\_
to emulate a frame-style interface.
Sticky positioning: As with fixed positioning, element positions can be sticky to emulate a \_\_\_\_\_
\_\_\_\_\_
.