I have a div
, not specified any size inside CSS. Size grows with content using display: inline-block
. Using width, outerWidth ignores the content size and returns zero. No need for an example, nothing special except I load my content with ajax $.load
.
Content is definitely loaded before using width
. Somebody with a hint?