Themans

Why Isn't My Background Image Stretching to My Full Page Width, How Do I Fix This?

Asked by Themans 2 years ago background width image


Joel Reyes
1

Most Helpful

Most Helpful

 
Seems you have the entire browser window set to 100% rather than the width of the page. Enter the following code within your CSS and it should stretch the image correctly now:

Position: Absolute; padding-top:25px; background: Url(images/bg-img.jpg) repeat-x scroll 0 0

by Joel Reyes 2 years ago

Waylon
0
 
Looks like you're missing the repeat-x attribute in your CSS code.

by Waylon 2 years ago

Answer this question

Why Isn't My Background Image Stretching to My Full Page Width, How Do I Fix This?

0 errors found:

 
0