How do I get rid of the white space around a HTML page containing JUST an image?

admin

Administrator
Staff member
Can someone tell me how do I get rid of the white space around a HTML page containing JUST an image?<br />
<br />
I've succesfully managed to get popup windows using a bit of Javascript (thanks to a previoud posting).<br />
<br />
All I have in my new popup window is an image.<br />
<br />
But... I seem to have white spaces around the top and left of my image. How do I get rid of this?<br />
<br />
(When launching the window, I'm specifying the dimensions of the image to be the dimensions of the webpage - is this relevant?)<br />
<br />
Thanks.<br />
<br />
<br />
Jam<!--content-->You have to set the margins:<br />
<br />
<br />
<body bgcolor=#ffffff topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"><br />
<br />
<br />
Goes at the top in the body tag.<!--content-->or<br />
<br />
<body style="margin:0px; padding: 0px;"><!--content-->
 
Back
Top