Results 1 to 2 of 2

Thread: Iframe and spacing

  1. #1
    larsfoto Guest

    Iframe and spacing

    I try to do a page with a top line with links and Iframe showing flash file underneath. I'd like the top line to be just above the frame, but now there is a small white border on top of the Iframe that I want to get rid of. Anyone that can help me with a solution? Both menu and Iframe are in a table cell.

    Page is here:

    http://frifoto.no/ny/

  2. #2
    Join Date
    Mar 2010
    Location
    Ithaca, NY, USA
    Posts
    212
    First, to get rid of the iframe border, set the "frameborder" attribute to 0 in the iframe tag and add "border: 0px" to its css.

    As for the rest of your code, tables are gross and outdated in my opinion, you should use divs and floats to achieve the design you want. Most importantly, do not use fixed margins for your page, it will look good in one resolution but not others. For example, I just went to it using 1024x768 and half of your site is off the page. Instead, set the margin of your main container to "margin: ?px auto;" changing the '?' to whatever you want your top margin to be. This will auto-center the container on the page.
    Last edited by coiner; 30 Apr 2010 at 12:59 PM.

Posting Permissions

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