Note. I know that offsetWidth only reads
I am trying to create a popup "div" overlay a trwith the same width.
However, I cannot say how to set div widthit offsetWidthto be the same as it is tr.
The calculation will look something like this:
div.width = tr.offsetWidth - div.paddingWidth - div.marginWidth
but, of course, the best way (since I can only think about getting indentation and field offsets in groups of two ...)
In particular, I would like to receive a response to YUI 2. If possible,
source
share