Scroll Bars in IFrames

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Scroll Bars in IFrames

    1. ok,im using an IFrame, it works good, but there is always a bottom scroll
    bar on the frame! it wont go away, even if the frame is 500px wide and the
    content is 100px wide, it seems that if tehre is a side scrollbar, there is a
    bottom one. How do I make the bottom one go away when it isnt needed?

    2. Ive thought of a solution for this, I think... for the IFrames code,if I
    have:

    <iframe scrolling="no" name="contentframe" src="news.htm" width="400"
    height="240" frameborder="0"></iframe>

    It's in a table, is there a way that "news.htm" can I have a custom scroll
    bar, where I have images used as the up and down arrows? then when it is loaded
    into the "contentframe" and its scrolling is off, the "news.htm" would have its
    own scroll bar. Is this posible?

    Please answer 1, or both!

    BamJamble Guest

  2. Similar Questions and Discussions

    1. GETTING RID OF EXTRA SCROLL BARS IN IE?
      I've just created two new sites for clients who prefer the look of <iframe>'s and the problem I'm having is that Internet Explorer for Windows adds...
    2. scroll bars tables
      im trin to get a scroll bar into a table.. does anyone know hwo to do it? cheers
    3. Scroll bars for a projector
      Hi DV, Projectors doesn't have built-in scrollbars. But you can somewhat make your own by using Lingo.You can create custom scrollbars or buttons...
    4. IFrames - Horiz Scroll problems
      Hi everyone, I created an IFrame based galley that allows the visitor to click on a thumbnail to get a larger image view....
    5. How do I customize scroll bars
      For those who are interested, I found that scrollbars can indeed be easily customized using a css .style tag in the heading section, eg.: <STYLE...
  3. #2

    Default Re: Scroll Bars in IFrames

    You have many possibilities..
    If you really can't take off the horizontal scrollbars (adjusting
    the source of your html's), you can use <div>'s to prevent iframe from
    having horizontal scrolling. Something like..
    <div id="content" style="width: 99%; height: 99%; overflow-y:
    auto;">
    CONTENTS
    </div>
    (in file which'll be in iFrame).

    []s and sorry for my English..

    --
    - Rio de Janeiro, Brasil
    - Troyan <dnunes[at]email[dot]com>


    Troyan Guest

  4. #3

    Default Re: Scroll Bars in IFrames

    Exactly what I'd say... set the visibility of the overflow to hidden like this:
    overflow: hidden

    You have the choice of four options for this: [num]1) Hidden overflow
    (everything larger than the layer will not show)
    2) Visible overflow (everything will show regardless of layer size)
    3) Auto (scrollbars will be added if the content is larger than the layer)
    4) Scroll[/num]

    I think you could use "Visible" as well - and it shouldn't give scrollbars,
    but since you know how large your content is, just make the overflow invisible.
    ;)

    Steel_Cat Guest

  5. #4

    Default Re: Scroll Bars in IFrames

    okay,for some reason it wont let my upload a pic, but im not sure if you guys
    understand what im trying to say... Im a bit new to html and i dont really
    understand all the technical stuff too well but i try.

    what im trying to say is that i WANT the vertical scroll bar, but for some odd
    reason, the horizantleone jumps in there when it isnt needed, i even tested
    this, i put in a bunch of lines with one character on the. as soon as i had a
    vertical bar, the horizantle one hopped in. and i can only scroll a tiny way
    (about the width of a vertical bar). If you knew what i meant and i just didnt
    understand your solution too well, refrase it please. i really need a way to
    exclude the vertical bar. (I kind of understood the first reply but it didnt
    work, but the second one was a bit confusing)

    BamJamble Guest

  6. #5

    Default Re: Scroll Bars in IFrames

    BamJamble wrote:
    > okay,for some reason it wont let my upload a pic, but im not sure if you guys
    > understand what im trying to say... Im a bit new to html and i dont really
    > understand all the technical stuff too well but i try.
    >
    > what im trying to say is that i WANT the vertical scroll bar, but for some odd
    > reason, the horizantleone jumps in there when it isnt needed, i even tested
    > this, i put in a bunch of lines with one character on the. as soon as i had a
    > vertical bar, the horizantle one hopped in. and i can only scroll a tiny way
    > (about the width of a vertical bar). If you knew what i meant and i just didnt
    > understand your solution too well, refrase it please. i really need a way to
    > exclude the vertical bar. (I kind of understood the first reply but it didnt
    > work, but the second one was a bit confusing)
    >
    Hi BamJamble,

    I was stressing out over this very problem a while ago until I hit upon
    a solution that works for me. You have to strictly define the width of
    the html document that you are importing into the iframe to be less than
    the width of the iframe itself. For example, I found it best to do this
    in the 'body' of the imported document:

    My iframe is 300px wide. I set this CSS of the imported document:

    body {
    width: 295px;
    }

    Now everything in the imported document is definitely going to be less
    than the iframe and you will never see a horizontal scrollbar no matter
    how long your imported document is. The reason that I set the body of
    the imported document to several pixels less than the iframe is because
    (surprise surprise) IE doesn't seem to calculate it properly. All the
    others browsers I tested (Netscape, Mozilla, Firefox, Safari) dealt with
    a width just 1 pixel less ok.

    Good luck.
    Dry
    Drylouvre Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139