might be easier to put a very long string in a div, then set overflow:hidden for that div.
but the height and width of the div are div.offsetHeight and div.offsetWidth; they're DOM element properties, not jQuery methods. they're always in an integer number representing pixels. so if you want the height and width of any string just put it alone in a div and take those properties. On Fri, Sep 5, 2008 at 2:02 PM, marcus <[EMAIL PROTECTED]> wrote: > > Hi, > I have a div into which I want to load a string. The div has height > and width 100% - the whole window - and I want the string to fill the > whole div/window. (And when the window size changes the string's size > changes, too.) > > Can someone tell me if jQuery can help me here to calculate the height > of the string in pixel and how? >

