width - jQuery outerWidth on a parent element which has child elements with padding -
i have slight issue, trying outer width of table cell. table cell has inputs child elements, in case textbox , image.
the width of image 16px , width on textbox 115px. textbox has padding left , right, both 2px (equals 4px).
i assume td.outerwidth() gives me 119 + 16 = 135px (115 + 4 padding + 16) instead gives me 115 + 16 = 131px.
outer width return correct width on child elements separatly there seems problems when calculating outer width on parent element has child elements padding. if remove padding, works fine.
does else have problem or solution it?
Comments
Post a Comment