Skip to content

Commit e4d98e5

Browse files
committed
Remove incorrect statement about box-sizing and width()
1 parent 312ffe4 commit e4d98e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/width.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $("#getw").click(function () {
7575
<longdesc>
7676
<p>When calling <code>.width("value")</code>, the value can be either a string (number and unit) or a number. If only a number is provided for the value, jQuery assumes a pixel unit. If a string is provided, however, any valid CSS measurement may be used for the width (such as <code>100px</code>, <code>50%</code>, or <code>auto</code>). Note that in modern browsers, the CSS width property does not include padding, border, or margin, unless the <code>box-sizing</code> CSS property is used.</p>
7777
<p>If no explicit unit is specified (like "em" or "%") then "px" is assumed.</p>
78-
<p>Note that <code>.width("value")</code> sets the width of the box in accordance with the CSS <code>box-sizing</code> property. Changing this property to <code>border-box</code> will cause this function to change the <code>outerWidth</code> of the box instead of the content width.</p>
78+
<p>Note that <code>.width("value")</code> sets the content width of the box regardless of the value of the CSS <code>box-sizing</code> property.</p>
7979
</longdesc>
8080
<example>
8181
<desc>Change the width of each div the first time it is clicked (and change its color).</desc>

0 commit comments

Comments
 (0)