Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Iframe Not Acting Right!

    I know that iframes are old and rarely used anymore but I have an issue. I used tables and put iframe content inside. I make the iframe height and width specific to the size of the frame that will go into it so it will be flush with the window. But although I get my widths tight the height never is right, there is always space below my frame no matter what I do. I notice that this space is left in the table. For some reason my iframe doesnt fill up the table and if I make my framed page bigger the space still shows up at the bottom of the page in the iframe. Can someone tell me a better way to make the content show up in one space without iframes or tell me how to get it to be tight in the space I want.


    Thanks,
    Outtareach

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Edinburgh, UK
    Posts
    402
    Thanks
    2
    Thanked 1 Time in 1 Post
    Not entirely sure whether this'll work but try the following:

    Code:
    <td style="margin: 0; padding: 0;">
       <iframe [...] style="margin: 0; padding: 0;">
       </iframe>
    </td>
    Obviously add the other attributes that you have with your page, but add the styles and see what happens.
    Rich

    "An expert is a person who has made all the mistakes that can be made in a very narrow field."

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    with tables, sometimes spacing becomes a factor. try putting the TD right up to the iframe tags (no return spacing)...

    <td><iframe></iframe></td>


  •  

    Posting Permissions

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