I think what he is trying to say is it is a way around iframes because some web browsers dont support iframes (allthough I think all the new ones do) however that css property will only work in all the latest browsers that support it as well so there isnt much difference if you are using them for the same purpose.
I tend to agree mostly, and I really got a whole lotta information outa here,
but I'm just not completely sure that I'm understanding the depth to this.
Would anybody care to expand just a little more?
I tend to agree mostly, and I really got a whole lotta information outa here,
but I'm just not completely sure that I'm understanding the depth to this.
Would anybody care to expand just a little more?
Originally Posted by Jrisey
I tend to agree mostly but im still not sure I understand everything here.
Sometimes designs are fixed heights, and as such the content div needs to have its own little scrollbox (rather than the standard sidebar one). I've had a few projects where I've used overflow:auto, basically if the div's content is over XYZpx high, then scrollbars will show up and they can scroll the content (like the box on the demo). This part is wrong: "It is not possible to find a cross-browser way of applying a background image to this scrollable area.". I know that's rubbish because I set a bottom right background image on one just the other week.
This isn't a substitute for an iframe. Iframes get remote pages and loads them in - this doesn't.
Sometimes designs are fixed heights, and as such the content div needs to have its own little scrollbox (rather than the standard sidebar one). I've had a few projects where I've used overflow:auto, basically if the div's content is over XYZpx high, then scrollbars will show up and they can scroll the content (like the box on the demo). This part is wrong: "It is not possible to find a cross-browser way of applying a background image to this scrollable area.". I know that's rubbish because I set a bottom right background image on one just the other week.
This isn't a substitute for an iframe. Iframes get remote pages and loads them in - this doesn't.
you could use an AJAX request to load in a remote page.
completely pointless, but just saying you could
This part is wrong: "It is not possible to find a cross-browser way of applying a background image to this scrollable area.". I know that's rubbish because I set a bottom right background image on one just the other week.
Are you sure about that Matt? I would double or triple check it before I called an old article like this rubbish, a part or not.
Yep, I'm 100% positive that my background worked I'd post it if it wasn't NDA.
Try it yourself - make a div with scroll overflow:auto and height 200px, add tons of content, add a bg image and check it across all the major browsers