OK, smart-a%*, what is the question, then? "I have an image. I don't know its size...."
Sure sounded like you wanted to know what the size of this image was... Maybe what you meant was: "I want to put a random image in a div and maximize its size. I don't know what the image will be in advance, so I don't know its dimensions. Is there a way in CSS to maximize its size within the div?" If that's the question, then the answer is "no, I don't think so, not with pure CSS". But with server-side scripting you could find out the image dimensions and set the <img> tag's height and width to appropriate dimensions. -----Original Message----- From: Diego Chagastelles Subject: Re: [css-d] img size Its a "css list" not "pc lessons for your five-years-old child list". > -----Original Message----- > From: Diego Chagastelles > Subject: [css-d] img size > > I have an image. I dont know its size, dont know if it has a bigger > width or > a bigger height, and this is fundamental to fit the image in a div: > cause I > want the image as big as possible inside the div. How can I do that? ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/