How do you make a floating page over a background image in HTML?
-
I want a static background image with a white page about 80% width floating over the background with a small shadow. When you scroll down the page the background should also remain static so its just the page scrolling/floating up and down over the background. This is what I manged to get so far: <html> <head> <style type="text/css"> body {background-image:url(background.png);} </style> </head> <body> <div style="background-image:url(page.png); background-repeat:repeat-y; margin-top:-8px; margin-bottom:-8px; margin-left:auto; margin-right:auto; width:80%;"> </div> </body> </html> Except This page has no shadow and when you scroll down the background moves with it but I need it to stay put so it looks like the page is floating over the background. I tried using CSS shadows but w3schools shows it's not supported in IE, which is a problem. I just can't figure it out cos I'm still learning all of this. Is there any other way to do this?
-
Answer:
For shadows: Create a backgroundimage which already has a shadow. You shouldn't use the CSS3 property jet, because it isn't supported by older browsers and IE. To fix your background, use: background-attachment:fixed;
russel walker at Yahoo! Answers Visit the source
Related Q & A:
- How can I make a download page?Best solution by Stack Overflow
- How do you make a twitter page private?Best solution by wikihow.com
- How do you make a band page on yahoo?Best solution by Yahoo! Answers
- How can you make a music page on Facebook?Best solution by Yahoo! Answers
- How do you make a MOVIE page on Wikipedia?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.