Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / matching image size to box size so that image doesn't tile

matching image size to box size so that image doesn't tile

Views: 660

Results 1 to 3 of 3
2 Jul 2013, 4:59 AM
#1
cyberbaffled avatar

cyberbaffled

Zen Follower

Join Date:
Apr 2012
Location:
Louisville, Colorado, USA
Posts:
120
Plugin Contributions:
0

matching image size to box size so that image doesn't tile

I'm hoping there's a concise answer to this question. What's the procedure for matching an image size (pixels as measured in Photoshop, 72 ppi) to a box size -header, body, etc.- so that the image precisely fills the box and doesn't tile? Question for anyone out'n'about tonight.

2 Jul 2013, 9:05 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: matching image size to box size so that image doesn't tile

Start with a link to your site please.

2 Jul 2013, 1:08 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: matching image size to box size so that image doesn't tile

For background images,

background-size: 100% 100%;

will do what you are asking for, in all modern browsers. IE8 and older will not process this.