Results 1 to 3 of 3

Thread: Iframe problem in FF & IE

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

    Default Iframe problem in FF & IE

    Hello Everyone,

    I have created a page containing my MENU (dhtml/css based), I have attached this menu page using the IFRAME.

    Heres the code:
    <div id="menu" style="height: 40px;">

    <iframe marginwidth="0" marginheight="0" src="menu.html" frameborder="0" width="100%" scrolling="no"></iframe>

    </div>

    The problem is, Firefox displays everything fine, like It does'nt shows space in between menu & rest of the page, but the Internet Explorer includes the space ( upto the length of my drop down menu ).

    Here are snapshots:

    http://www.freewebs.com/wusoft/menu_ff.jpg - Firefox
    http://www.freewebs.com/wusoft/menu_ie.jpg - IE

    Kindly Help me out.
    Last edited by techunar; 07-15-2006 at 11:18 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,069
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    It is very hard to say without seeing the live page, so that all markup and styles can be considered together as to their net effect on the presentation in the various browsers. Without that I can only suggest one thing that often works. That is to use absolute positioning:

    HTML Code:
    <div id="menu" style="height:40px;position:absolute;">
    
    <iframe marginwidth="0" marginheight="0" src="menu.html" frameborder="0" width="100%" scrolling="no"></iframe>
    
    </div>
    But, this can throw it off in the other direction, causing overlaps so, then a container with relative positioning:

    HTML Code:
    <div style="height:40px;position:relative;">
    <div id="menu" style="height:40px;position:absolute;">
    
    <iframe marginwidth="0" marginheight="0" src="menu.html" frameborder="0" width="100%" scrolling="no"></iframe>
    
    </div></div>
    - John
    ________________________

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

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

    Smile

    Thanks John, that helped me & my problem is resolved.

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
  •