HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 13. POSITIONING: RELATIVE AND ABSOLUTE 140


Required Answer:left


Exam Question 252(p.351): If we say right: 5px; which direction will
things move? (left or right)
Required Answer:left


Exam Question 253(p.351): If we say right: -5px; which direction will
things move? (left or right)
Required Answer:right


Exam Question 254 (p.351): If we say top: 5px; which direction will
things move? (up or down)
Required Answer:down


Exam Question 255(p.351): If we say top: -5px; which direction will
things move? (up or down)
Required Answer:up


Exam Question 256(p.351):If we say bottom: 5px; which direction will
things move? (up or down)
Required Answer:up


Exam Question 257(p.351):If we say bottom: -5px; which direction will
things move? (up or down)
Required Answer:down


13.2 Elements Retained In Flow


In two cases, the positioned element is retained in the flow. That is, it
continues to take up space between the things that come before and after it
in the HTML, and it inherits its width from its surroundings.


Exam Question 258(p.351): List the two CSS positions that retain the
element in the flow.
Required Answer:static, relative


13.2.1 position: static;


Exam Question 259(p.351): Which CSS position is the default?
Required Answer:static


Static is the normal way of things. Elements take up space in the flow. This
is the default.

Free download pdf