HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 12. BOX MODEL 130


overlap.


Exam Question 222(p.349): Does margin share the same background as
the content?
Required Answer:no


Exam Question 223(p.349):Can margin style be different on each of the
four sides?
Required Answer:yes


Adjacent vertical (top and bottom) margins may collapse in some cases.
This means they share the same space. In that case, the larger of the two
margins will be used.


Exam Question 224(p.349): Can “margin:” be negative?
Required Answer:yes


Negative margin can move items closer together than they would normally
be. You can use negative values to cause things to overlap.


12.1.5 Outline


Outline is rarely used. It is probably most used for temporary highlighting
because turning it off and on does not cause the page to reflow.


It begins just outside the border and overlaps the margin and maybe beyond.


Like the border, the outline has thickness, color, and style.


Unlike the border, the outline does not take up any space. It simply overlaps
whatever is in its way.


Exam Question 225 (p.349): Which box model parameter is used for
temporary highlighting?
Required Answer:outline


Exam Question 226(p.349): Which box model parameter has invert as
a color option?
Required Answer:outline


Exam Question 227(p.349):Can outline style be different on each of the
four sides?
Required Answer:no


Outline has the same color options that the border does, plus one more:
invert.

Free download pdf