View Full Version : Formatting the contents of an iframe

01-19-2006, 04:45 PM
I'm using the CMotion Image Gallery Script here (http://www.teevo.co.uk/testing/new/wonsueroda/04media/gallery/01miscellaneous/index.htm)
...which is part of a re-design of a site that is currently entirely in flash.

Larger images are displayed inside an iframe. However, due to standard page margins, the images are not displaying at the edge of the frame as I'd like (in line with the text and thumbnails).

I tried using the following to resolve this, but that's been no use.

iframe html body {
margin: 0px;
How can I format the margins of the pages that display in the frame?

If it's not possible, please let me know and I'll have to ask in the Javascript forum for another way to have the images display there (i.e: without use of a frame).

If I haven't explained it very well, just say so. :o

01-20-2006, 08:05 AM
Just like you format the margins of any page. However, you have no pages displaying in the iframe, only images. So, you can use this:

<iframe name="display" marginwidth="0" marginheight="0" frameborder="0" width="680" height="400" src="../original photos/Aaron.jpg"></iframe>

01-21-2006, 12:49 AM