/    Sign up×
Community /Pin to ProfileBookmark

height not working when scrolling

Hi all,

Ive got this code below that sets up a mask that covers the whole page. It does cover the whole page but when i scroll down, that part that i scrolled isn’t masked. If i set the height to something high like 2000px it works, but i would rather that it just covers the whole page using something like 100%…then i don’t have to worry about it. Also if i set it to something like 2000px, there is tons of white space at the bottom of the page that i don’t want there. Does anyone have any ideas?

Thanks

<style type=”text/css”>
#overlay {
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: #000;
opacity: 0.60;
-ms-filter: “progidXImageTransform.Microsoft.Alpha(Opacity=79)”;
filter: alpha(opacity=79);
-moz-opacity: 0.79;
z-index: 2;
visibility: hidden;
position: absolute;}

</style>

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@KorSep 29.2010 — Try give it a [B]fixed[/B] position, not an [B]absolute[/B] one.
×

Success!

Help @cedric813 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,
)...