235 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Won a Most Wanted contest
  • Sells items exclusively on Envato Market
+2 more

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.


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

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes