JS Fiddle: http://jsfiddle.net/meYnS/3/
Suppose I have a .outer element with a width of 100 pixels and position:relative; . It has an internal element that has position:absolute; and left:95px; . That is, the child element exceeds the width of the parent element.
Now, in JQUery, if I try to get the width of the parent using $('.outer').outerWidth(); he will return 100.
But how can I get the full width of the outer element (which is obviously greater than 100, due to the absolutely positioned child element)?
Is there a built-in way or do I need to do a manual calculation (i.e. adding each width of the child to the parent width to determine the full width)?
source share