jQuery OuterWidth() Method

The outerWidth() method gets the outer width of selected element.

The outer width includes the width, padding and border, and may include margin or not.

Example:

  Calculation include the margin

#innerFrame

Width: 250px

Padding: 5px

Border: 2px

Margin: 8px

Width: 500px

Border: 5px

jQuery Web Page Design Tutorials