div cover entire page

liunx

Guest
Hi guys,
This should be an easy one...

How can I have a div cover an entire page even if there's scrolling?

This is what I have so far:

div#pageMask {
margin: 0;
padding: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: url(images/the_image.gif);


Thanks!Have you tried setting height and width to 100%?Actually, yes... but I still got a huge missing part on the part of the page you'd need to scroll to.

Would having the div positioned relatively help? I'm trying all sort of stuff, including the overflow property...

...no luck yet.Forget about the part I said about positioning relatively :)It just seems you are trying to place a background image; if that is the case, what's wrong with applying the style to the BODY tag? If that is not the case, I don’t believe you can accomplish what you want. “100%” is from the top of the viewable area to the bottom; you cannot, to my knowledge, extend past that without explicitly specifying a height more than 100%, which then means you must know exactly how much the document extends past the viewable area.No, I can't apply the image to the body tag... there's one already applied to the body tag.

Anyway it looks like it can be somewhat achievable by applying 100% height to the body and html tags, albeit it doesn't seem to be working for me correctly.

<!-- m --><a class="postlink" href="http://www.quirksmode.org/css/100percheight.html">http://www.quirksmode.org/css/100percheight.html</a><!-- m -->

Thanks for you input, Paul.??!! what the hell??!Originally posted by bloodymary
How to make $$Millions$$ in months and this is no Scam!
THIS REALLY CAN MAKE YOU FAST MONEY!!! IT WORKS!!! BUT YOU HAVE TO FOLLOW IT TO A LETTER FOR IT TO WORK!!!
A little while back, I was browsing through newsgroup, And came across an article similar to this that said You could make thousands of dollars within weeks with only an initial investment of
$6.00! So I thought, "Yeah, right, this must be a Scam", but like most of us, I was curious, so I kept reading.
Anyway, it said that you send $1.00 to each of the 6 names and Addresses stated in the article.
You then place your own name and Address in the bottom of the list at #6, and post the article in at least 200 newsgroup. (There are thousands) No catch, that was it. I figured what have I got to lose except 6 stamps and $6.00, right? Like most of us I was skeptical and a little worried about the legalities of it All. So I checked it out with the US Post Office (1-800-725-2161) and they confirmed that it is indeed legal! Then I invested the measly $6.00. Well GUESS WHAT!!.... Within 7 days, I started getting money in the mail! I was shocked! I figured it would end soon, but the money just kept coming in. In my first Week, I made about $25.00. By the end of week two I had $1,000.00! In the third week I had over $10,000.00 and it is still growing. This is now my fourth week and I have made over $40,000.00 and it is still coming in rapidly.
It is certainly worth $6.00 and 6 stamps!!!!
Let me tell you how this works and most importantly, why it works...also, make sure you print a copy of this article NOW so you can get the information off of it as you need it. STEP 1: GET 6 separate pieces of paper and write the following on each piece of paper 'PLEASE PUT ME ON YOUR MAILING LIST.' Now get 6 US $1.00 bills and place ONE inside EACH of the 6 pieces of paper so the bill will not be seen through the envelope to prevent thievery. Next, place one paper in each stating the above phrase, your name and address, and a $1.00 bill. What you are doing is creating a service by this.
THIS IS ABSOLUTELY LEGAL. Mail the 6 envelopes to the following addresses:
#1) T.A. Huff, 252 N. Burson Ave., Bogart, GA 30622
#2) Patricia Blanchette, 295 Princeton Ave., Bayville, NJ 08721
#3) J.J. Hinde, 314 E. Illinois St., #28, Lemont, IL 60439
#4) S.C.B.,28 Dalrymple Green N.W.,Calgary, A.B. T3A-1Y2, Canada
#5) Gabriel Quan 159 Sickles Ave. San Francisco, CA 94112
# 6) Bao Chau Tran, 14315 Lenora PL.N #7, Seattle, WA 98133
STEP 2: Now take the #1 name off the list that you see above, move the other names up (6 becomes 5, 5 becomes 4, etc...) And add YOUR Name as number 6 on the list. STEP 3: Change anything you need to, but try to keep this article as close to original as possible. Now, post your amended article to at least 200 newsgroups, message board. (I think there are close to 24,000 groups) All you need is 200, but remember, the more you post, the more money you make!!---DIRECTIONS---HOW TO POST TO NEWSGROUPS, MESSAGE BOARD---Step 1) You do not need to re-type this entire letter to do your own posting. Simply put your cursor at the beginning of this letter and drag your Cursor to the bottom of this document, and select "copy" from the edit menu. Step 2) Open a blank "notepad" file and Place your cursor at the top to the blank page. From the "edit" menu select "paste", Step 3) save your new notepad file as a .txt file. Step 4) Use Netscape or Internet explorer and try searching for various newsgroups (on-line forums, message boards, chat sites, discussions.) For example, log on any search engine like yahoo.com.google.com,altavista.come,excite.com then you search with this subject "millionaire message board: or "money making forum" or "business message board: etc". Click one by one then you will find the option post a new message. Step 5) Visit these messaage boards and post this article as a new message by highlighting the text of this letter and selecting paste from the edit menu. Fill in the Subject, this will be the header that everyone sees as they scroll through the list of postings in a particular group, click the post message button. You are done with the first one!
Congratulations...THAT'S IT! All you have to do is jump to different newsgroups and post away, after you get the hang of it, and it will take about 30 seconds for each newsgroup! ** REMEMBER, THE MORE NEWSGROUPS OR MESSAGE BOARDS YOU POST IN, THE MORE MONEY YOU WILL MAKE!! BUT YOU HAVE TO POST A MINIMUM OF 200** That's it! You will begin receiving money from around the world within days! You may eventually rent a P.O. Box due to the large volume of mail you will receive. **MAKE SURE ALL THE ADDRESSES ARE CORRECT.
NOW THE WHY part: Out of 200 postings, say I receive only 5 replies (a very low example). So then I made $5.00 with my name at #6 on the letter. Now, each of the 5 persons who just sent me $1.00 make the MINIMUM 200 postings, each with my name at #5 and only 5 persons respond to each of the original 5, that is another $25.00 for me, now those 25 each make 200 MINIMUM posts with my name at #4 and only 5 replies each, I will bring in an additional $125.00! Now, those 125 persons turn around and post the MINIMUM 200 with my name at #3 and only receive 5 replies each, I will make an additional $625.00! OK, now here is the fun part, each of those 625 persons post a MINIMUM 200 letters with my name at #2 and they only receive 5 replies, that just made me $3,125.00!!! Those 3,125 persons will all deliver this message to 200 newsgroups with my name at #1 and if still 5 persons per 200 newsgroups react I will receive $15,625.00! With an original investment of only $6.00! AMAZING1
When your name is no longer on the list, you just take latest posting in the newsgroups, and send out another $6.00 to names on the list, putting your name at number 6 again. And start posting again. The thing to remember is, do you realize that thousands of people all over the world are joining the internet and reading these articles everyday. JUST LIKE YOUare now!! So can you afford $6.00 And see if it really works?? I think so...People have said, "what if the plan is played out and no one sends you the money?" So what are the chances of that happening when there are tons of new honest users and new honest people who are joining the internet and newsgroups everyday and are willing to give it a try? Estimates are at 20,000 to 50,000 new users, every day, with thousands of those joining the actual Internet.

You know what this reminds me of? The spam in my email inbox. Lol.

"You've won the lotter" blah blah. Sheesh.Originally posted by BuezaWebDev
You know what this reminds me of? The spam in my email inbox. Lol.

"You've won the lotter" blah blah. Sheesh. Ya, "bloodymary" has posted that message 94 times as of now, and they're still goin :mad:post removed. BuezaWebDev would you like to edit your post or prefer to leave as is?Originally posted by ajimenez
No, I can't apply the image to the body tag... there's one already applied to the body tag.
Might it be possible for you to move the background from the BODY element to the HTML element, and then apply this background (the one you are now having problems with) to the BODY element?I would apply that image to the BODY tag except then it'd need to be dynamic.

This 'mask' div displays only under certain condition. I suppose I can apply it to the BODY tag with javascript whenever that same condition is met. DHTML :D
 
Back
Top