Skip to content

Commit 812e132

Browse files
Matt Doylemgol
Matt Doyle
authored andcommitted
width: Add quotes around .css() width argument (jquery#1118)
Fixes jquerygh-1102 Closes jquerygh-1118
1 parent fb2edb2 commit 812e132

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
@@ -8,7 +8,7 @@
88
</signature>
99
<desc>Get the current computed width for the first element in the set of matched elements.</desc>
1010
<longdesc>
11-
<p>The difference between <code>.css(width)</code> and <code>.width()</code> is that the latter returns a unit-less pixel value (for example, <code>400</code>) while the former returns a value with units intact (for example, <code>400px</code>). The <code>.width()</code> method is recommended when an element's width needs to be used in a mathematical calculation.</p>
11+
<p>The difference between <code>.css( "width" )</code> and <code>.width()</code> is that the latter returns a unit-less pixel value (for example, <code>400</code>) while the former returns a value with units intact (for example, <code>400px</code>). The <code>.width()</code> method is recommended when an element's width needs to be used in a mathematical calculation.</p>
1212
<figure>
1313
<img src="/resources/0042_04_04.png"/>
1414
<figcaption>Figure 1 - Illustration of the measured width</figcaption>

0 commit comments

Comments
 (0)