diff --git a/entries/height.xml b/entries/height.xml
index 3632ed02..dd809c0f 100644
--- a/entries/height.xml
+++ b/entries/height.xml
@@ -1,7 +1,7 @@
Note: Although style
and script
tags will report a value for .width()
or height()
when absolutely positioned and given display:block
, it is strongly discouraged to call those methods on these tags. In addition to being a bad practice, the results may also prove unreliable.
-
-
+
.innerWidth()
1.2.6
@@ -12,6 +12,7 @@
+
Get the innerWidth of a paragraph.
While it is possible to get the coordinates of elements with visibility:hidden
set, display:none
is excluded from the rendering tree and thus has a position that is undefined.
-
+
+
Access the offset of the second paragraph:
1.4
- An object containing the properties top
and left
, which are integers indicating the new top and left coordinates for the elements.
+ An object containing the properties top
and left
, which are numbers indicating the new top and left coordinates for the elements.
diff --git a/entries/outerHeight.xml b/entries/outerHeight.xml
index 67816672..529b0be7 100644
--- a/entries/outerHeight.xml
+++ b/entries/outerHeight.xml
@@ -1,5 +1,5 @@
-
+
.outerHeight()
1.2.6
@@ -7,7 +7,7 @@
A Boolean indicating whether to include the element's margin in the calculation.
- Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements.
+ Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or null if called on an empty set of elements.
The top and bottom padding and border are always included in the .outerHeight()
calculation; if the includeMargin
argument is set to true
, the margin (top and bottom) is also included.
This method is not applicable to window
and document
objects; for these, use .height()
instead.
@@ -15,6 +15,7 @@
+
Get the outerHeight of a paragraph.
-
+
.outerWidth()
1.2.6
@@ -16,6 +16,7 @@
+
Get the outerWidth of a paragraph.
Note: jQuery does not support getting the position coordinates of hidden elements or accounting for borders, margins, or padding set on the body element.
-
+
+
Access the position of the second paragraph:
Get the current computed width for the first element in the set of matched elements or set the width of every matched element.
-
+
.width()
1.0
@@ -22,6 +22,7 @@ $( document ).width();
Note that .width()
will always return the content width, regardless of the value of the CSS box-sizing
property. As of jQuery 1.8, this may require retrieving the CSS width plus box-sizing
property and then subtracting any potential border and padding on each element when the element has box-sizing: border-box
. To avoid this penalty, use .css( "width" )
rather than .width()
.
+
Show various widths. Note the values are from the iframe so might be smaller than you expected. The yellow highlight shows the iframe body.
+
+ The numbers returned by dimensions-related APIs, including
, may be fractional in some cases. Code should not assume it is an integer. Also, dimensions may be incorrect when the page is zoomed by the user; browsers do not expose an API to detect this condition.
+
Selected elements are in the order of their appearance in the document.