I fail to see how Michal's example would fail - do you have an eample page, or some example code?
It's reaching that point of "I just want to KNOW!" :) On Feb 17, 1:23 pm, Michal Charemza <[email protected]> wrote: > On 17 Feb 2009, at 17:05, ryan wrote: > > > You are :) > > We're writing an inline html editor, so we dont know the width of the > > textarea... and there can be multiple per page. > > The thing is, I am still confused. Why don't you know the % width? You > said the textarea has a % width. If the % width was assigned > > - Via CSS, then you could use the CSS class method outlined to > 'transfer' the % width to the wrapper div. > > - Via JS, then JS already 'knows' the % width, and you could call > setStyle to get the wrapper to the correct % width. > > What I find confusing are the statements "we don't know the width of > the textarea" and "I have a textarea that is a percentage width". I'm > not sure how the textarea can have a % width if you don't know what > the % is. > > Maybe if you give a (minimal) example specifying exactly how the DOM > appears before/after the wrapping, and specifying what styles you want > before/after the wrapping, a solution could be found. > > Michal.
