How can I determine the explicit width of a HTML element that has width auto using PHP?
JQuery has the ability to do this if width:auto;
is used it can compute the actual width.
Get the current computed width for the first element in the set of matched elements.
JQuery probably does this with the help of the browser as it is client side.
How can I achieve this using PHP? I have the HTML as a string.
Update
All CSS is inline, if the width is auto, the only thing left to determine the width of the element is its immediate parent and/or its contents.