Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12147 closed bug (invalid)

Reword documentation for .width() method

Reported by: mail@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

The wording on the page http://api.jquery.com/width/ is confusing.

This text:

The difference between .css(width) and .width() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px).

could be beter written as:

The difference between .width() and .css(width) is that the former returns a unit-less pixel value (for example, 400) while the latter returns a value with units intact (for example, 400px).

Change History (1)

comment:1 Changed 7 years ago by Rick Waldron

Resolution: invalid
Status: newclosed

Please file api doc related bugs here: https://github.com/jquery/api.jquery.com

Note: See TracTickets for help on using tickets.