Couple of days I am trying to make a div re-size like an image(proportionally).
For example If I have a div with dimensions 500x140, I want it on a browser re-size to react like an image that has width="100%". I find out a similar questions but they didn't work for me.
Is there a way to do that(without using a dummy image)?
EDIT:

p.s. Sorry for my bad English.