Beruflich Dokumente
Kultur Dokumente
Which of the following could be used to stop elements following a floated element from
flowing around or ignoring it?
clear: left;
float: stop;
float: clear;
clear: all;
What property and value can you apply to a parent element to force it to recognize floated
child elements?
overflow: auto;
display: none;
clearfix: hack;
position: positive;
If you don't explicitly set a value for the position property of an element, what value will it
have?
no position value
position: absolute;
position: relative;
position: static;
How do elements behave in what we call the "normal (or natural) flow of the document"?
They stack top to bottom.
They flow left to right.
They flow left to right and top to bottom.
They overlap unless directed otherwise.
Which position value leaves an element in the normal/natural flow of the document?
static
relative
fixed
absolute
When you set position: relative; on an element, what is that element being positioned
relative to?
The four edges of the browser window.
Wherever the element would end up in the normal flow of the document.
The next nearest element.
The next nearest block element.
When you set position: absolute; on an element, what is that element positioned in relation
to?
Its parent element.
The browser window.
The viewport.
The element's nearest neighbor.
Which of the following must also happen in order to absolute-ly position an element?
The element must be a block-level element.
The element must be an inline element.
The element cannot have any child elements.
The element's parent element must also be given a position value.
What position value do you set on an element to position it relative to the four sides of the
viewport?
relative
absolute
fixed
static
When you apply a position value, what should you generally also provide to position the
element where you want it?
the element's offset values
the element's height and width
the element's priority in the cascade
the element's z-index value
The z-index property controls which element will end up on top in the case of element
overlap.
False
True
Which of the following can be used to create a navbar that stays in place on the page even
when the user scrolls?
position: absolute;
display: visible;
position: fixed;
display: block;
What happens to an absolutely positioned element when a user scrolls the web page?
it stays in place no matter what the user does
it scrolls along with its parent element
it disappears until the user stops scrolling
it floats
Does spacing (white space) in an html document matter to the way the document looks in the
browser?
No
Yes