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

2nd Apr 2017, 4:36 PM
Luis Pato
Luis Pato - avatar
6 ответов
+ 10
padding + height + padding =outerHeight 2+84+2 = 88
5th Sep 2017, 3:44 PM
Aram Saleem
Aram Saleem - avatar
+ 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.
2nd Apr 2017, 4:41 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 1
2+84+2=88
10th Dec 2018, 9:38 AM
V.Manojprabha
0
padding + height + padding = outerHeight 2 + 84 + 2 = 88
21st Aug 2018, 1:35 PM
Nikhil Makwana
Nikhil Makwana - avatar
0
88
6th Jul 2020, 7:28 AM
Yusril
Yusril - avatar
0
88
4th Dec 2020, 1:32 PM
El Maslohi Hassan