Iframe help

Discussion in 'Web Design & Coding' started by Khayman, Jun 15, 2004.

  1. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Ok so, i'm doing an Iframe and all is going well. In firefox it works fine. It only displays a vertical scrollbar when needed and doesn't display a horizontal one (cause its should never be needed)

    But in IE (nobody say a word about how crap it is :)) it is fine as long as no scrollbars are needed but when a vertical one is needed it also displays a horizontal one no matter how wide the Iframe is.

    Is there away to get IE to behave like firefox in this matter

    I have looked around and the inline style style="overflow-x: hidden;" is supposed to work, but doesn't seem to do anything

    Cheers
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    I have absolutely no idea, however would love to hear a solution. The shoutbox on Camportal suffers from exactly the same problem.

    The problem actually only arises with IE6, it appears fine in IE5.. I don't know if that would apply to yours also.
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Errr

    /me turns around and leaves
     
  4. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    I just checked the shoutbox iframe on my site in IE, and it seems to display only the vertical scrollbar. Check it out and let me know if that's what you're talking about:
    http://www.kunal.kundaje.net/
     
  5. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    Have you tried setting overflow:auto

    I know that works for <div>'s, I have not ever worked with frames.
     
  6. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Yes, like that
     
  7. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    yes, like that
     
  8. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    you finish school in 17 hours ? :)
     
  9. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Attached: CamPortal shoutbox in IE4 (5 and 5.5 behave the same), then IE6 :\
     
  10. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    I don't have any old IE versions, but i get the same thing in FireFox, compared with IE6
     
  11. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Come on NetRyder, how did you get that to work! the whole needs to know! :p
     
  12. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    I found one solution. Remove the !DOCTYPE delcaration, it works! lol. Although i'd rather leave it in
     
  13. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    LOL, i think i found the answer. You have to put scrolling="yes" in the iframe tag (not auto or left blank)

    *EDIT*
    Although in IE (only) then the vscroll bar is always there even if it doesn't need to be.... damn it! i can't win!
     
  14. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Maybe create a javascript or sump, like
    if (Mozilla)
    document.write(!doctype etc);
    else
    //do nothing

    Although I don't know if it works, since a Doctype has to be placed before any html/javascript.
     
  15. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Cool! It works. (the scrolling="yes" thing). Thanks Khayman, you finally fixed the only html-related problem on my website :D
     
  16. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Ok i think i may have it working, lol
    After spending more time with CSS than i care to mention. It now seems to work the same in both IE and FireFox (i don't care about anything else)

    Only a vertical scroll bar when needed. never a horizontal one. You'd think it'd be easy!
     
  17. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    Sorry I didn't respond earlier, guys. =\
    I have my last final in 3 hours. If you still need to see how I did it, I'll post it sometime later today.
    7 hours to go...woohoo! [​IMG]
     
  18. Henyman

    Henyman Secret Goat Fetish Political User

    lucky git


    *goes back to revision*