0
jquery
What is the value of outerHeight() for the paragraph after the following code? $("p").height(84); $("p").css("margin", 8); $("p").css("padding", 2);
1 Answer
+ 2
88
It's element height + paddingx2
84 + 2 + 2 = 88
$("p").height(84);
$("p").css("margin", 8);
$("p").css("padding", 2);
console.log($("p").outerHeight()); // Outputs 88
https://drive.google.com/file/d/15x_OPXctI_LIDKfXANaVp7O4pcZWIwIt/view?usp=sharing