Click to See Complete Forum and Search --> : Can't get rid of horiz scrollbar - iframe
MattS
11-03-2003, 12:47 PM
I am using IFRAME in a page and everything is lining up correctly, I just can't get rid of the horizontal scrollbar. I even made the iframe source have a table with a width smaller than the iframe, so it doesn't need to scroll horizontally. Is there a way I can get rid of the horizontal scroller, but keep the vertical scroller?
DaveSW
11-03-2003, 03:31 PM
In the page that loads in the iframe try putting
<style type="text/css">
<!--
body {
overflow-x: hidden;
}
-->
</style>
in the head section.
I think that's it anyway. LOL
PeOfEo
11-03-2003, 04:06 PM
lol that will do it but why not just use %'s for widths of the content in the iframe, make the content smaller then the iframe width wise.
smithtay
11-04-2003, 08:24 AM
Am I wrong, or can't you just use <iframe scrolling="no"> or something like that?
DaveSW
11-04-2003, 08:43 AM
I haven't tested that, but wouldn't it apply to the vertical scrollbar as well as the horizontal?
PeOfEo
11-04-2003, 05:30 PM
and it would only work in internet explorer and it is not valid html. Just make the page inside the iframe fluid, OR ELSE :D
MattS
11-05-2003, 05:00 PM
Originally posted by PeOfEo
and it would only work in internet explorer and it is not valid html. Just make the page inside the iframe fluid, OR ELSE :D
Fluid?
PeOfEo
11-05-2003, 05:04 PM
fluid - being able to resize or adapt to different resolution or browser windows size. Basically if you use %'s or css margines for setting your widths, it will resize to fit the page when it resizes. So if the iframe resizes, that means the page inside the iframe will resize too if the elements inside of that page can resize.
havik
11-05-2003, 05:12 PM
It means to size your elements using percentages rather than pixels, inches, etc...
The pages on here are fluid. Resize the pages and you'll see that the page resizes itself to fit the window.
http://webhost.bridgew.edu/etribou/layouts/