PDA

View Full Version : Image alignment for iframe


oddwire
04-15-2004, 06:59 PM
Hi,

probably a very simple thing, but can anyone tell me how to remove margins/ padding on a web page? I'm using dreamweaverMX, creating a page that will just contain an image for an iFrame on another page. It needs to be a specific size to fit into the iFrame without scrollbars, but there's a default margin on the page which means I must make the image very small to fit into the frame.

Is there a way to remove these default margins / set them to zero?

Thanks a lot.

zoobie
04-16-2004, 04:12 PM
Try:
<body style="margin:0px; padding:0px; overflow:hidden">
in the iframe's page

oddwire
04-16-2004, 05:00 PM
Thanks a lot zoobie, I'd sorted out the scrollbars but still had a margin that I was willing to live with, but your suggestion worked perfectly. Never came across that overflow tag before.

Thanks, o.d.