Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background image question?
#1
My friend's going to design a background for a website for me. The client would like the image to be able to stretch to fit the monitor of whoever is visitng the website, so that the image is not forced to repeat itself? Thanks.
Reply
#2
Unfortunately you cannot stretch a background image, your options are to have a really wide image that most resolutions wont exceed, to have a background that tiles but looks like it stretches or to have the edges of your background image blend into the background color.

You will find on most sites that appear to "stretch" if you stretch them wide enough you will find the edge of the image (you might need dual screens for this), this is an example of the first method I mentioned.
MyBB Support team member.
[Image: smallsig.png]
Reply
#3
^^ Not true.

You can use "div" container, placing it as a first layer: css( z-index and background-size )
http://www.w3.org/TR/css3-background/#background-size
Reply
#4
I don't believe that's supported by many browsers. It will be nice when it is though.
MyBB Support team member.
[Image: smallsig.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Image ontop of Image? rlogin 3 796 07-11-2011, 02:56 PM
Last Post: Billy Mays
  How to put a background behind the main logo Notorious Mental 8 1,403 10-18-2009, 02:41 PM
Last Post: Grizzly

Forum Jump:


Users browsing this thread: 1 Guest(s)