Click to See Complete Forum and Search --> : Ifram Scrollbar Situation
absolutmgd13
12-18-2007, 09:39 AM
I have access to ONLY the iframe html code:
<iframe border="0" marginwidth="0" marginheight="0" src="#" frameborder="0" width="565" height="750" scroll="yes">
<a href='#'></a></iframe>
How can i set this iframe at the point its at now, to have ONLY a vertical scroll when necessary while eliminated any side to side scroll? Changing the size of the iframe is not an option. I can't figure this out! :mad:
matt.ritter
12-18-2007, 11:47 AM
Just to clarify, you can only modify the content that is being displayed in the i frame?
If so I would encase that content in <div> with style attributes of width:565px.
If on the other hand you can only change the iframe code you could add style="overflow-x:hidden" ie:
<iframe border="0" marginwidth="0" marginheight="0" src="#" frameborder="0" width="565" height="750" scroll="yes" style="overflow-x:hidden">
<a href='#'></a></iframe>
The only problem is that if the page being called has an element wider than 565 pixels it gets cut off.
absolutmgd13
12-18-2007, 12:12 PM
well thats my problem, i dont have access to the CSS or the head of the document. only the <iframe> tag itself. i have a solution im working with within the iframe:
<iframe allowtransparency="true" style="overflow:hidden;"></iframe>
This is doing the job so far, but i need the iframe to autoadjust to the height of its contents. the iframe is an outsourced application, so i cant do anything to the contents within it.
know any simple autoadjust for the iframe to its contents? i found a javascript solution, but it there a solution that is strictly css?