Jump to content

gettings pics in a white box..


justinchrono

Recommended Posts

First you put each image in a div, set the background of the div to white, and give it a standard width and height. Then you can do one of the following:

 

1) Use a server-side script to resize your thumbnails to a standard size

2) Use a server-side script to get the dimensions of the images, then use a bit of calculations to set inline CSS for a top margin that will center the thumbnail, using auto side margins to center it horizontally

3) You can use javascript to do #2 (though I wouldn't recommend it).

 

This is all dependent on your images being smaller than the size of the standard div you give at the start.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.