SubZero. Posted July 16, 2007 Share Posted July 16, 2007 Hello guys,I want to set div's height and weight to set automatically depends on image size.How to set that? Link to comment Share on other sites More sharing options...
danm68 Posted July 17, 2007 Share Posted July 17, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.