userpic size

Apr 29, 2011 11:51

EDIT: solved!

I'm using a layout that resizes userpics (on the recent entries and friendspage view) from 100x100 to 75x75 and it works fine for square userpics but stretches out non square userpics to the incorrect ratios. So I was wondering if there was a way to resize userpics to max of 75x75 without screwing up the aspect ratio?

here are my codes: )

userpic

Leave a comment

velshtein April 29 2011, 22:14:52 UTC
I deleted the height line (height:75px; from this section:

}
.entryUserinfo-usericon img {
border-top:10px solid black;
height:75px;
padding-top:5px;
width:75px;
}

And now the height of the userpics stay at their original heights while shrinking to the 75px width:


I know nearly next to nothing about coding so I'm not sure what else to do. Or if you can change the pixel thing to resizing an image by percent?

Reply

nomoreprinces April 29 2011, 22:24:07 UTC
weird that should have worked.

trying putting the height back in as:

max-height: 75px;

Reply

velshtein April 30 2011, 02:01:59 UTC
No, that just made things act the same way in the beginning. Lmao I don't even have many non square icons but this is driving me a bit nuts. :D

Reply

nomoreprinces April 30 2011, 02:08:19 UTC
*sigh* I'm totally stumped :( I'd stay try min-height instead of max because I always get those two mixed up, but I suspect it'll just do the same thing as the first thing I had you try. :\

Reply


Leave a comment

Up