{"name":"outerWidth","type":"method","title":".outerWidth()","deprecated":null,"removed":null,"desc":"Get the current computed width for the first element in the set of matched elements, including padding and border.","categories":["css","dimensions","manipulation/style-properties","version/1.2.6"],"entries":[{"return":"Number","signatures":{"added":"1.2.6","argument":{"desc":"A Boolean indicating whether to include the element's margin in the calculation.","name":"includeMargin","optional":"true","type":"Boolean"}},"examples":{"desc":"Get the outerWidth of a paragraph.","code":"\nvar p = $( \"p:first\" );\n$( \"p:last\" ).text(\n \"outerWidth:\" + p.outerWidth() +\n \" , outerWidth( true ):\" + p.outerWidth( true ) );\n","css":"\n p {\n margin: 10px;\n padding: 5px;\n border: 2px solid #666;\n }\n","html":"\n

Hello

\n"},"longdesc":"\n

Returns the width of the element, along with left and right padding, border, and optionally margin, in pixels.

\n

If includeMargin is omitted or false, the padding and border are included in the calculation; if true, the margin is also included.

\n

This method is not applicable to window and document objects; for these, use .width() instead. Although .outerWidth() can be used on table elements, it may give unexpected results on tables using the border-collapse: collapse CSS property.

\n

\n \n

\n "}]}