Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background image as page width

Status
Not open for further replies.

antonyx6666

Programmer
Sep 9, 2010
38
GB
i am trying to duplicate the layout of this website example

you can see that the image stretches across the width of the page, however, when you right click on the image and choose 'view background image'
here the actual image itself is not the width of the page. therefore i am assuming the css or page settings zoom in on the photo in order for it to match the page width. is that correct?

can anybody explain how this is done?

thanks
 
Excellent link, looks like just what I was looking for. Thank you.
 
it seems as though the div will always zoom into the photo in order for it to fill the space. this of course will distort the image. is the only way around this to make an image which is guaranteed to be wider than any possible div ie 2000px? Would this then only show the visible area if it's centered or will it scale the pic down to fit?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top