css - Responsive images using img vs background -
i've been working on adding animated hover effect , have worked out solution using img , background image can viewed here. background image better read using img better screen readers , search engines per article.
the issue i'm having when testing responsiveness img solution looks warped when compressed col-xs-6 while background solution doesn't. img css using:
.hovereffect img { width: 150%; height: 100%; }
now i've tried using height:auto
pic doesn't fill full height, want do. there anyway maintain img proportions when scales down?
Comments
Post a Comment