Avatar CSS

Go down

Solved Avatar CSS

Post by Kaizer Lee on October 29th 2013, 6:21 am

Code:
.res img {
  width:150px !important;
  height: 150px !important;
}
Yo, does that thing not work anymore? Doesn't work on my forum anymore whereas before the editor update, it did, even for offline uploaded avatar.

Javascript doesn't override CSS in anyway, just in case someone says anything about it.
avatar
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Avatar CSS

Post by Ange Tuteur on October 29th 2013, 6:38 am

The selectors in the code above aren't present. Perhaps they were present in one of your templates, but this should resize profile images:
Code:
.poster-profile img{
max-width: 150px !important;
max-height: 150px !important;
}
Its best to use max-height/width, using just width and height will resize the image to those dimensions. Max instead resizes images larger than the property value.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Avatar CSS

Post by Kaizer Lee on October 29th 2013, 9:18 am

Wow, thanks mate, it works. This topic's solved Wink.

Btw, sorry but I suck at reading selectors xD
avatar
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Avatar CSS

Post by SLGray on October 29th 2013, 7:27 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43109
Reputation : 3054
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum