Click to See Complete Forum and Search --> : How do I get rid of the white space around a HTML page containing JUST an image?


jammer20002
09-10-2003, 11:16 AM
Can someone tell me how do I get rid of the white space around a HTML page containing JUST an image?

I've succesfully managed to get popup windows using a bit of Javascript (thanks to a previoud posting).

All I have in my new popup window is an image.

But... I seem to have white spaces around the top and left of my image. How do I get rid of this?

(When launching the window, I'm specifying the dimensions of the image to be the dimensions of the webpage - is this relevant?)

Thanks.


Jam

p2bc
09-10-2003, 11:37 AM
You have to set the margins:


<body bgcolor=#ffffff topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">


Goes at the top in the body tag.

DaveSW
09-10-2003, 11:39 AM
or

<body style="margin:0px; padding: 0px;">