0
jQuery Course - Module 3 Quiz - Question 2/4
What is the value of outerHeight() for the paragraph after the following code? $("p").height(84); $("p").css("margin", 8); $("p").css("padding", 2) I thought the right answer would be be height + 2*padding + 2*border = 104 but the quiz is accepting as a correct answer 88, which is actually the innerheight, and not the outerHeight. Hmmm, or did i get this the other way around...? =P
6 Answers
+ 10
padding + height + padding =outerHeight
2+84+2 = 88
+ 5
I also did the same mistake. You didn't saw that it is not border, it is the margin's value which is 8. margin is not added in outerHeight.
+ 1
2+84+2=88
0
padding + height + padding = outerHeight
2 + 84 + 2 = 88
0
88
0
88