The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS Help: Img & Div
Hi,
and here is css:
.user_avatar { width: 75px; height: 75px; border: 1px solid #000000; overflow: hidden; margin: 2px 10px 0px 0px; }
.user_avatar.img { width: 75px; height: auto; position: absolute }
div is ok but “.user_avatar.img” not working, and img not resize to 75px, what’s the problem? i also change the css to:
user_avatar.img
and
#user_avatar.img
or
#user_avatar.img.avatar
but neither working!
yes, my problem was ‘.’ symbol. Thanks for your help, it works, here: http://codepen.io/Pedram/pen/rEibv