lundi 20 avril 2015

responsieve displaying image inside of percentage div

I have been struggling to find the answer. Is there any possible way to responsieve displaying image element when I resize the percentage div element window?

css

div{
    width:60%;
    height:400px;
}
div > img{
    width:100%;
    height:100%;
    min-height:100%;
    min-width:100%;
    background:tomato
}

html

<div>
    <img src="" alt="" />
</div>

Fiddle

Thank you

Aucun commentaire:

Enregistrer un commentaire