I've created a <div>
with width:10em
and height:5em
.
Now I would like to display an <img>
(GIF image) in this <div>
with the exact same size.
But apparently it doesn't "know" the em
unit. It shows the picture in 10x5 pixels instead.
How can I display this <img>
using the "em" unit?