Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Any way to make an auto-sizing window?
- Will Hartung
January 16, 2007, 6:55 am
rate this thread
I was wondering if there was a portable way to make a popup window that
autosizes to the content (or a specific div within the content).
I have some dialogs that would look nicer in a "proper" fitting window.
But if I hard code the dimensions, then that doesn't take in to account
the different browsers and such, nor any variations in font size.
So, I was hoping through perhaps some clever java script there might be
a way do this.
Re: Any way to make an auto-sizing window?
Will Hartung wrote:
If you want to do this, depending on the actual need of your site, you
might benefit from using an 'inline' popup instead of opening a new browser
window. Like with a absolute positioned <div>, or possibly an iframe
because of some form-control bugs with the former. Also, if you use an