I have a universal style applied to avatars, but in this situation I want to override that to get height and width from the html attributes.
<img src="http://site.com/wp-content/uploads/avatars/4/21b534c3f0db3355775089689cb4e003-bpthumb.jpg" class="avatar user-4-avatar avatar-14 photo" width="14" height="14" alt="Avatar of user">
img.avatar {
height: 80px;
width: 80px;
}
.bbpress img.avatar, .forum img.avatar {
/*what rule do I put here to make the avatar use the html attribute for sizing?*/
height: auto;
width: auto;
}
I don't want to change any html, just CSS... is there any way to do this? I tried auto
, but that makes it its natural height and width.