Set container height to div height + add 100 pixels

I have this function

$(".container").width('1052').height($(".right").height()); 

And in the function, the height of .container is set to the height of .right. Well, I also always want to add 100 pixels to this number. How can i achieve this?

Is this possible without creating a separate variable? Thanks:)

+4
source share
2 answers

Maybe add a literal of 100?

 $(".container").width('1052').height($(".right").height()+100); 
+7
source
 $(".container").width('1052').height($(".right").height() + 100); 
+1
source

All Articles