/    Sign up×
Community /Pin to ProfileBookmark

Scrolling problem when window not maximised.

Hi,
I have a webpage with an iframe in it. The iframe is sized and styled with a CSS class like so:

.mainFrameStandard
{ position: absolute;
left: 0%;
top: 15px;
width: 983px;
height: 400px;
z-index: -1;
border: 2px solid silver;
white-space:nowrap;
}

The page looks just as I want it when the window is maximised.

The problem is whenever the window is not maximised the scrollbar appears as normal however it doesn’t scroll all the way to the bottom of the page so a little bit at the end of the iframe is impossible to see on anything other than a maximised window.

I think this might be to do with the fact I am using pixel values instead of percentages but I would much rather stick with those if I could.

Has anyone seen a problem like this before and do you have any ideas how I could fix it?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWJul 18.2003 — do you mean you can't see the entire frame itself? or the contents?

if it's the entire frame itself you can't see then you'll probably have to use a % or a smaller value.
Copy linkTweet thisAlerts:
@StellarJul 19.2003 — i would say change your height to a percentage as well.
×

Success!

Help @jovialjonny 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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