Jump to content

DIV for image


SubZero.

Recommended Posts

Hello guys,I want to set div's height and weight to set automatically depends on image size.How to set that?
So basically you want the div to 'fit' around the image?
div.img1{height: auto;		 width: auto;}

But if what your asking is for a fixed div height and width, by measuring the image...dunno something like javascript or php?Sorry if that's no help...but to me it sounds like you just want it to fit around the image with no ..space..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...