iframes Q

Out of context: Reply #3

  • Started
  • Last post
  • 7 Responses
  • Jnr_Madison0

    Or this - from google

    THE WORKAROUNDS:

    There are three ways to get rid of the unnecessary horizontal scrollbar in IE (you only have to do one of the three):

    1) Set the body style of the page that appears within the iframe to:
    display: inline;
    ( or use a style sheet or set the style in the header)
    The reason this works is because it forces the body with to be only as wide as its content.

    2) Set the doctype of the page that appears within the iframe to

    (leave out the link to the dtd)

    3) in the iframe tag, set the attribute:
    scrolling="yes"
    (This will cause the vertical scrollbar to always be present, but the horizontal scrollbar will appear only when necessary. The reason this works is because in this situation, IE allots space for the vertical scrollbar before setting the width of the included body.)

View thread