257 posts
  • 6 Years of Membership
  • Author Level 4
  • Exclusive Author
  • Most Wanted Winner
+2 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
  • 6 Years of Membership
  • Exclusive Author
  • 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
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
  • Collector Level 2
+5 more
jonatanfroes
says
by
by
by
by
by
by