206 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 5 years
+1 more
Morad says

Hi everyone.

I want to make a something.

First, when i make a background image for a web page, it’s by default repeated and this repeat could observed when changing resolution of screen may be over 1024 768, and it could not to be repeated by making {background-repeat: no-repeat} then the background will go to left and a white space will be exist in right and this is what i don’t want. I want the background to be stretched in all page and i don’t know the code for that.

I hope you provide me with the missing information.

Thanks.

17 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
twincircuits says

try this:

(in the HTML )

background image

(in the CSS )

img.stretch { position: fixed !important; position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

Enjoy :)

181 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
jonatanfroes says
by
by
by
by
by
by