Results 1 to 3 of 3

Thread: Formatting the contents of an iframe

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Formatting the contents of an iframe

    I'm using the CMotion Image Gallery Script here
    ...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.

    Code:
    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thankyou.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •