Hi, i'm trying to achieve this result: <snip>
How can i do that? Considering that the div is width/height fixed, but the width/height image can vary.
The orizonal alignment works with just a simple text-align:center, but what about the vertical one ? vertical-align is only for the text. (i can't do any fixed padding/margin as i don't know the image dimensions, and i cant't give a fixed width/height to the image, to mantain the ratio)
For now i've something like this:
<div style="width:200px;height:200px;background:#eee;border:solid blue 1px;text-align:center"><img src="x.jpg" alt="x" /></div>
[edited by: eelixduppy at 3:36 am (utc) on Jan. 10, 2009]
[edit reason] no screenshots, please [/edit]