How To Keep Image Aspect Ratio Inside A %width Div?
I'm sorry to ask this again, but my search has not revealed anything that I have been able to implement. I have an image inside a div with the following styles:
.grid_6 {
width: 50%;
height:100px;
overflow:hidden;
}
.thumbimg {
display: block;
width:100%;
height:auto;
}
Solution 2:
Is this what you want?
.grid_6 {overflow: hidden; }
.thumbimg {
height: 100px;
width: auto;
}
Post a Comment for "How To Keep Image Aspect Ratio Inside A %width Div?"