Question in the quiz after resume project


#1

On the quiz after the "Build a Resume" project there is a question that ask:

Which of the following would decrease space between the "above" div and the p below it?
div id="above"></div
p>Meaningful paragraph content</p

and the answers are:
A negative value for the "above" div's margin-bottom property.

A negative value for the p padding-top property.

A positive value for the "above" div's margin-bottom property.

A negative value for the p margin-top property.

all of these answers are correct so can someone tell me why they don't all work?


#2

lets go over the options:

A negative value for the p padding-top property.

padding is the spacing inside the box (paragraph are block level elements), negative values won't do anything.

A positive value for the "above" div's margin-bottom property.

this will actually push the paragraph further down.

but the both remaining options:
A negative value for the "above" div's margin-bottom property
A negative value for the p margin-top property.

should work.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.