Closed Thread Icon

Preserved Topic: Margin problem (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=20480" title="Pages that link to Preserved Topic: Margin problem (Page 1 of 1)" rel="nofollow" >Preserved Topic: Margin problem <span class="small">(Page 1 of 1)</span>\

 
RAMshackle
Nervous Wreck (II) Inmate

From: Italy
Insane since: Mar 2002

posted posted 03-27-2002 23:11

I want to open an image ( W 640 H 480) in a new window. I made a 640X480 window, set topmargin/leftmargin to 0 but I' m still getting a margin on the right and at the bottom. I'm really stuck here, I would like the image to fit EXACTLY in the window. Is there any HTML/CSS/Javascript trick to get rid of the margins?
Any help appreciated, thanx.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-28-2002 02:30

RAMshackle: Welcome. Its not got full crossbrowser support (i.e. it doesn't work in older browsers) but try the CSS:

code:
body {
margin: 0px;
}



It depends on the circumstances but try and avoid things like TOPMARGIN/LEFTMARGIN - they are even less cross browser and are 2 of the 4 Horsemen of Non-Validation:
www.alistapart.com/stories/journey/

Emps

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-28-2002 06:20

Margins to zero like Emps says and try opening your window with these options:

toolbar=no,location=no,directories=no,status=no,scrollbars=no,width=800,height=600

You should be able to get a popup almost exactly the size of your image.

. . : newThing

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 03-28-2002 06:40

...and the old fashioned way:

<BODY LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0"> </BODY>


Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-28-2002 07:35

Look out!!!

RAMshackle
Nervous Wreck (II) Inmate

From: Italy
Insane since: Mar 2002

posted posted 03-28-2002 13:37

Thanx guys, I was finally able to solve the problem. I took several attempts to get it right anyway. I'm using a Mac and couldn't get it to work. Later I tested on my old crappy PC and it was OK. It's not the first time it happens. Don't want to start the empth Mac/Win debate here, you've seen it all before, but I think while Macs are great for graphics/audio/video, when code/browser compatibility are concerned they suck a little bit...

« BackwardsOnwards »

Show Forum Drop Down Menu