Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript pop-up window that automatically fits?



1:10 am on Jul 5, 2003 (gmt 0)

10+ Year Member


A while ago I ran across a Javascript pop-up script that would automatically resize itself to fit the exact dimenions of my picture. I don't care for the white border around all my pics on my pop-ups.

Have you seen a script like this or is there a way to do this differently? The code needs to have the ability to have a customizable size for each picture, there is no generic size for my pics.

thanx a mill,


2:11 am on Jul 5, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Are you using CSS to remove margins? I would think you can use your script and get rid of the margins and have it do what you need.


4:38 am on Jul 5, 2003 (gmt 0)

10+ Year Member

Yes I am and the margins are set to 0px...


4:52 am on Jul 5, 2003 (gmt 0)

10+ Year Member

It's because I have it linked to a picture file, and not an actual html file with the pic in it :)
aha! thanx a mill guys

Featured Threads

Hot Threads This Week

Hot Threads This Month