/    Sign up×
Community /Pin to ProfileBookmark

Ifram Scrollbar Situation

I have access to ONLY the iframe html code:

[CODE]<iframe border=”0″ marginwidth=”0″ marginheight=”0″ src=”#” frameborder=”0″ width=”565″ height=”750″ scroll=”yes”>
<a href=’#’></a></iframe>[/CODE]

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! 😡

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@matt_ritterDec 18.2007 — 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.
Copy linkTweet thisAlerts:
@trendieDec 18.2007 — hhttp://www.tkqlhce.com/click-2729918-10521003i if you people miss this chance then click once here
Copy linkTweet thisAlerts:
@absolutmgd13authorDec 18.2007 — 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:
[CODE]
<iframe allowtransparency="true" style="overflow:hidden;"></iframe>
[/CODE]


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?
×

Success!

Help @absolutmgd13 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...