<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Set Outer-Width and Outer-Height of the Elements</title> <style> #box{ width: 300px; height: 200px; padding: 25px; text-align: justify; border: 10px solid #c6b51a; background: pink; margin: 15px; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("#box").outerWidth(400).outerHeight(300); }); }); </script> </head> <body> <div id="box">In a similar fashion, you have the ability to establish the inner width and height of an element by furnishing a value as a parameter to the innerWidth() and innerHeight() methods. These methods solely modify the width or height of the element's content region to align with the specified value.</div> <button type="button">Set outerWidth and outerHeight</button> </body> </html>