![]() |
resizing Avatar in Postbit
is there a clean/quick way to reduce the size of the user avatar in Postbit? I am testing with a responsive style and some of my users avatar images are just "large"
|
I would add a class selector in the "additional.css" template for a quick/easy way to change their size.
|
Just adding the following did nothing for me
Code:
.avatar { |
Can you inspect the DOM using your browser's dev tools? As far as applying it to postbit, but not postbit legacy, you would have to check to see if different classes are used, and if not use a plugin instead to add the CSS, or modify the templates directly. I'd rather use a plugin than hack the templates.
|
Quote:
|
If you can post a link to your site, on a page with avatars you want resized, I can help you come up with something. :)
|
Hey there, here's a link to one of his active threads, not many avatars though.
https://www.sportscardforum.com/show...e66?styleid=23 |
Right-click is disabled for guests, and I'm not going to go through the effort of circumventing that. :)
|
Quote:
|
Quote:
If it had been as simple as inspecting the existing CSS I would have posted a solution hours ago. |
Quote:
|
Quote:
The more I look at this however, it appears to be something that is a mobile device issue that I am going to reach out to the style author about as when I look at this on a PC, this appears OK --------------- Added [DATE]1564662217[/DATE] at [TIME]1564662217[/TIME] --------------- Quote:
color me confused - what is a media query? --------------- Added [DATE]1564662265[/DATE] at [TIME]1564662265[/TIME] --------------- Quote:
|
Quote:
|
You could use something like the following in your css_additonal.css template:
@media only screen and (max-width: 1080px) .postbitlegacy .userinfo .postuseravatar img, .eventbit .userinfo .eventuseravatar img { max-width: 75%; @media only screen and (max-width: 768px) .postbitlegacy .userinfo .postuseravatar img, .eventbit .userinfo .eventuseravatar img { max-width: 50%; @media only screen and (max-width: 480px) .postbitlegacy .userinfo .postuseravatar img, .eventbit .userinfo .eventuseravatar img { max-width: 25%; You will need to adjust the percentages based upon what you want to see at each screen size. |
I'll have to look at this more once I'm back in my office tomorrow - I have the idea of what needs to be done. In the additional.css file there are breakouts for the various size screens so I will need to look at this further.
would I need to do something like .postbitlegacy .userinfo .postuseravatar img, .postbit .userinfo .postuseravatar img, .eventbit .userinfo .eventuseravatar img { max-width: 25%; for capturing both the PB and PB legacy? Thank you all for the assistance - much appreciated. |
If you want to apply it for postbit as well postbit legacy then you may use something like this:
.userinfo img { max-width: 50% !important; } Instead of using percentages, I think it might be better to use fixed pixel values at different breakpoints. |
Quote:
The code here adding the .postbit does what I needed. I did reduce this to 30% at this point. Everyone that helped, I thank you greatly for this. Scott |
All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|