View Full Version : Iframes
Danny
March 1st, 2005, 13:24
Hey,
As most of you know, im slowly coming off my addiction to i-frames, so what i want to know, is if i have a layout that has a box in the centre for some content, and i have a php include in that box, how do i make it scroll if the content goes over the bottom of the box? Without it stretching the layout?
Cheers,
the_pm
March 1st, 2005, 13:54
This is when you get to learn about the CSS overflow property. You can set overflow on any container, and if its contents push outside the box, instead of spilling out over the edge, a scrollbar will appear and you'll have what appears to be an iframe, though it is much friendlier and more fun to use :)
If it wasn't for IE, you could use overflow-x and overflow-y to control scrolling by axis.
Anoop
March 1st, 2005, 19:36
the_pm....that was a very useful info.. :D
Danny
March 1st, 2005, 19:38
Cheers PM, sorry about the late reply, just got in from some errands
the_pm
March 1st, 2005, 20:01
Not a problem - we're not all permanently attached to our computers. Some of us have healthy lives outside of the glowing box :D
Glad that was useful Anoop. I've found overflow to be mighty useful myself!
Tjobbe
March 1st, 2005, 23:50
This is when you get to learn about the CSS overflow property. You can set overflow on any container, and if its contents push outside the box, instead of spilling out over the edge, a scrollbar will appear and you'll have what appears to be an iframe, though it is much friendlier and more fun to use :)
If it wasn't for IE, you could use overflow-x and overflow-y to control scrolling by axis.
I second that, very usefull Paul, thanking you very muchly! :wink:
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.