Keyword

Fixed avatar height & width

  • Andy Connell
  • Andy Connell's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 7 months ago #93898 by Andy Connell
Fixed avatar height & width was created by Andy Connell
Is there anyway to fix the size of a users avatar?

 

I have set the width to be no more than 50px, but would like the height to also be fixed to make the site look uniformal.

I am using standard K2 template.

 

Thanks in advance

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #93899 by micael jansson
Replied by micael jansson on topic Fixed avatar height & width
You can always right-click the page you want to make a change on and view source code. Look for the class of the avantar, for example itemAuthorAvatar. Then search for it in K2 css and add whatever size you want to. 

Please Log in or Create an account to join the conversation.

  • Andy Connell
  • Andy Connell's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 7 months ago #93900 by Andy Connell
Replied by Andy Connell on topic Fixed avatar height & width
Ive tried changing the line of code for avatars in K2.css to include a hight and width, but this still doesnt work./* --- Avatars --- */.k2Avatar img {display:block;float:left;background:#fff;border:1px solid #ccc;padding:2px;margin:2px 4px 4px 0; width:50px;height:50px;}

Also added a height and width to line 699 of K2.css

div.k2ItemsBlock ul li a.moduleItemAuthorAvatar img {width:50px;height:50px;}

But this doesnt work either,
Anybody have ideas on how to fix the avatars to 50x50 ??

Thanks in advance,
Andy

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #93901 by micael jansson
Replied by micael jansson on topic Fixed avatar height & width
In the case of logg in avantar, it is hard coded in the program, see below text, width:50px;height:auto. You have to change the source code in the program. 


<a class="k2Avatar ubAvatar" .....


<img src=" .." alt=".." style="width:50px;height:auto;" />



 

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum