Click to See Complete Forum and Search --> : getting a css box to fit to size of image in it


cidic
03-15-2007, 02:44 PM
i'm workin on a css/php gallery with 2 boxes, one to hold categories and one to hold the full sized image. I need the box in the middle to re size itself to fit the image in it because the full size images can vary in size. when a thumbnail is clicked a variable is passed through to url to tell the middle content box to load the appropriate image, i need the box to then resize itself to fit the image. how can i do this?

site:

KDLA
03-16-2007, 08:59 AM
You might investigate some javascripting that adjusts these heights for you. Unless you use something like width or height "auto," CSS probably won't be able to handle this alone.