Link to home
Start Free TrialLog in
Avatar of hermesalpha
hermesalphaFlag for Paraguay

asked on

How do I stretch the background-image on my webpage, using HTML?

How do I stretch the background-image on my webpage, using HTML?

Everything is written with HTML 4.01 (I'm a beginner, don't know any JavaScript or CSS yet).
The image muliplies itself about 220 % horisonally and 20 % vertically now, but I want it stretched out 100 % so it covers the whole screen. Can I do this with simple HTML? Or do I have to use CSS? It's a jpg-image.
ASKER CERTIFIED SOLUTION
Avatar of peanutvendor25
peanutvendor25

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lee
Avatar of peanutvendor25
peanutvendor25

basically the same code. CSS 3 does not work in broswers yet
While the proposed solutions above will work, please understand that if your image is not properly created or formatted itself, you are going to have heavy pixelating issues.  
I know you said you weren't versed in CSS or Jquery and that's fine. That's what we're here for.  I personally use this one:
http://srobbin.com/blog/easy-full-screen-background-images-with-jquery/ 
It's great and resizes the image to the best of it's ability without pixelating.  It also allows for cross browser compatibility and different resolutions.
 
Avatar of hermesalpha

ASKER

Thanks very much, worked perfect at once!