What is the html coding to get my background photo to fit any size screen?
-
I have a picture that I am using on a new website. The code I used is: <body background="image url" width="100%" height="100%"> On my 19" screen, the image is too large, and I cannot see the entire photo. On my other 22" screen, I get the whole photo, but it doesn't stretch to fit the screen, but starts tiling. What is the coding to get the image to fit any size screen?
-
Answer:
@ Bumblebee: The code DOES NOT work because it DOES NOT resize the image. Plus, just because a lot of code works today doesn't mean it is up-to-date and should be used. Learn to code to the latest standards or quit making crappy "web sites". We already have enough crappy sites on the Internet now! Bad coding for one. Totally outdated. Under current CSS 2.1 standards, background images can not be resized. CSS 3.0, once supported, will allow this. Using some CSS trickery, this might help you... Background to Fit Screen II: http://paynelessdesigns.pastebin.com/f760990b | http://paynelessdesigns.pastebin.com/VUSbessd http://www.cssplay.co.uk/layouts/background http://www.scriptdungeon.com/freejavascript/freescripts1284 http://css-tricks.com/perfect-full-page-background-image/ Ron
Shadow Knows at Yahoo! Answers Visit the source
Other answers
If it's the only thing that works it's not out dated, or am I wrong? Try this http://www.htmlite.com/faq022.php The best technique would be to create an interface that looks good at any resolution without javascript.
Bumblebee
Background to Fit Screen II: http://www.expertsupdates.com
Related Q & A:
- Does anyone know where to get a background check done for free?Best solution by usatoday.com
- How do I get to the photo booth?Best solution by Yahoo! Answers
- How can I get my background settings back?Best solution by ChaCha
- How to change a verical size screen to horizontal size screen?Best solution by Yahoo! Answers
- What can I do when I get pink screen on Xbox 360?Best solution by Answerbag.com
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.