PDA

View Full Version : Absolute top left hand corner!


olivier78
08-05-2002, 02:26 AM
Hi all,

How can I ensure that an image I wish to load on a site will appear in the absolute top left hand corner of a frame? I have created a table in a frame, were I load an image in it, but the image is not in the absolute corner, more like 4 pixels for the top and 4 pixels ffrom the left.

Since I am trying to give a image effect to the frame, it is annoying!!!

Thanks for all your help!

Olivier:thumbsup:

gmitra
08-05-2002, 02:29 AM
Set the margins of the HTML page in the frame to zero (0) and set all the borders, cell spacing, and padding of the table to zero (0).

To set the margins of the HTML page...

<body topmargin="0" leftmargin="0">

gmitra

olivier78
08-05-2002, 02:41 AM
It worked!

:D

Thanks gmitra;)

Gordo
08-05-2002, 02:54 AM
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

... is more cross-browser compatible and/or complete.

SYP}{ER
08-05-2002, 12:45 PM
Whereas <body style="margin: 0"> is more "valid" :p