iFrames Help
- Started
- Last post
- 21 Responses
- onehugeeye
Does anyone know of a way to force an iFrame to have only vertical scroll? I tried making the contents narrower and long but I keep getting an annoying horizontal scroll bar. is there a trick to do it?
cheers
- sexypixel0
scroll=hellno
or scroll=no will work too
- stewart0
scroll = auto ?
- onehugeeye0
LOL sexypixel... thanks guys.
I tried both. but I need the vertical so I can't use =no and the auto is the one I have at the moment and looks fine only on PC maybe is just a mac flaw again... I bet it works on Safari.
I just thought there might be a way lik scroll=yesbutverticalonly,thanks
- sexypixel0
there shouldnt be a horizontal scrollbar. sounds like your tables in the iFrame are too wide maybe
- naldertown™0
I've just been using loads of iFrames and I agree with the sexypixel.
The only reason in the milkyway that your getting horizontal scroilling is because your tables are too wide.
Don't forget to set your margins to '0' as it's treated as a normal HTML page.
- onehugeeye0
ok, cheers guys I'll double check everything again.
the table that has the iframe should be bigger than the dimensions of iFrame and the html that is loaded on the iFrame should be even smaller, right? but if it's just text it should wrap... that's how I'm working it out at the moment.
- sexypixel0
i always make the table with the iframe the same size as the iframe, and i always use tables to hold the content in the html page that is in the iframe,
man.. thats alot of iframing
- jevad0
are you using XP by any chance?
- naldertown™0
I do the same as the 'pixel of sexyness'.
- onehugeeye0
I'm not using XP. I'm on OSX, maybe that's the problem.
- naldertown™0
I build on OSX. No problems for me...
Although it's worth remembering that the kerinig/leading is slightly different between PC's and Macs. It shouldn't make a difference if the content your calling in is a table.
- jevad0
as long as you make sure that your iframe page is less wide than the iframe holding cell you should be fine....
- onehugeeye0
cheers naldertown... even if the page loaded on the iFrame is a splurge of text, can I ommit the table?
The other thing might be the css, would that affect the outcome?
- jevad0
only if you have extra padding or something in the css
- naldertown™0
I wouldn't disregard the table if you can help it. And as Jevad said, CSS shouldn't make a difference really...
- onehugeeye0
extra padding? gulp... dunno what that is but I'll try without it first and start adding bit by bit to rule out factors!
thanks everyone!
may happiness run you over!
- jevad0
nice site by the way alex!
the iframe there seems to be ok - the bottom is cut off - but there's no horizontal scroll.....
- onehugeeye0
thanks jevad! well the reason you don't see the horizontal scroll is because I am hiding it, since I couldn't solve it, I increased the table vertically and didn't use the scroll on the iframe, the vert scroll is on the table... what a mess
- sexypixel0
smoke and mirrors
- BrianMalcolm0
ya, IE in osx has given me all sorts of problems... i used to just sit and adjust the padding on the type until it behaved, but for some reason, if you use the tag (is your content text-only?), it straightens everything out... really random and annoying, but i know the problem exactly... and if you don't want to use the tag, don't fret a whole bunch, 'cause IE in osX is the only place it'll look like that...