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);

8th Sep 2020, 11:50 AM
Biruk Tadesse
1 Réponse
+ 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
8th Sep 2020, 2:50 PM
Erich Buelow
Erich Buelow - avatar