set the height and width of div element equal to img elemet's height and width?
- by Syom
i have an img element
<img src="some.jpg" style="position:absolute;">
i don't know the height and width of the image, because it loads dinamicaly, but i need to create a div element with position absolute, which must have the same width and height than the image. i.e
<div style="position:absolute;height:'img->height';width:'img->width'">
is it possible to do with just css?
if no, maybe jquery?
Thanks