I like it thanks )
Announcement
Collapse
No announcement yet.
How to make round avatars in vB5
Collapse
This is a sticky topic.
X
X
-
Originally posted by tenis View PostHello,
I used this code to make round avatars, I also forced avatars to be square 128x128 and biger.
Everything is working fine on my 5.6.0 vBulletin forum, except little avatars (used as topic icons) that are not all circle but some are ovals.
In postbit all avatars are circles.
the additional CSS
Code:/* Start Avatars without Borders */ .avatar, .b-avatar, .b-avatar--thread { border: 0; } /* End Avatars without Borders */ /* Big Avatars START */ .b-userinfo .b-avatar, .b-userinfo .b-avatar img { max-height: 128px; max-width: 128px !important; width: 128px; height: 128px; } /* Big Avatars END*/ /* Round Avatars START*/ .avatar img, .avatar:not(.medium) > img, .b-avatar:not(.b-avatar--m) > img, .b-avatar--thread > img, .b-avatar--s > img, .b-comment .b-avatar img, .b-comp-menu-dropdown__trigger-avatar, .profile-sidebar-widget .profileContainer .profile-photo-wrapper .profile-photo, .b-avatar--pmchat, .b-pmchat__participants-avatar, img.avatar, img.b-avatar { border-radius: 100%; } .avatar, .b-avatar, .b-avatar--thread { border: 0; } .b-avatar--thread img { border: 1px solid #fff; } /* Round Avatars END*/
- Top
- Translate
- Bottom
- Likes 1
Leave a comment:
-
Hello,
I used this code to make round avatars, I also forced avatars to be square 128x128 and biger.
Everything is working fine on my 5.6.0 vBulletin forum, except little avatars (used as topic icons) that are not all circle but some are ovals.
In postbit all avatars are circles.
the additional CSS
Code:/* Start Avatars without Borders */ .avatar, .b-avatar, .b-avatar--thread { border: 0; } /* End Avatars without Borders */ /* Big Avatars START */ .b-userinfo .b-avatar, .b-userinfo .b-avatar img { max-height: 128px; max-width: 128px !important; width: 128px; height: 128px; } /* Big Avatars END*/ /* Round Avatars START*/ .avatar img, .avatar:not(.medium) > img, .b-avatar:not(.b-avatar--m) > img, .b-avatar--thread > img, .b-avatar--s > img, .b-comment .b-avatar img, .b-comp-menu-dropdown__trigger-avatar, .profile-sidebar-widget .profileContainer .profile-photo-wrapper .profile-photo, .b-avatar--pmchat, .b-pmchat__participants-avatar, img.avatar, img.b-avatar { border-radius: 100%; } .avatar, .b-avatar, .b-avatar--thread { border: 0; } .b-avatar--thread img { border: 1px solid #fff; } /* Round Avatars END*/
1 Photo
- Top
- Translate
- Bottom
Leave a comment:
-
Originally posted by Mark.B View Post
This is what I'm currently using. Not sure now where I got the code from, could even have been here!
Code:/* Start over-ride postbit avatar size */ .b-avatar--m > img { max-height: 128px; max-width: 128px !important; } .b-avatar--m { height: 100%; width: 100%; } /* End over-ride postbit avatar size */
- Top
- Translate
- Bottom
Leave a comment:
-
I went for a blended code to give larger, rounded avatars that will show as circles or (vertical or horizontal) ovals.
Thank you to the original posters.
Code:/* Start avatar edit */ /* Start avatar round */ .avatar img, .avatar:not(.medium) > img, .b-avatar:not(.b-avatar--m) > img, .b-avatar--thread > img, .b-avatar--s > img, .b-comment .b-avatar img, .b-comp-menu-dropdown__trigger-avatar, .profile-sidebar-widget .profileContainer .profile-photo-wrapper .profile-photo, .b-avatar--pmchat, .b-pmchat__participants-avatar, img.avatar, img.b-avatar { border-radius: 100%; } .avatar, .b-avatar, .b-avatar--thread { border: 0; } /* End avatar round */ /* Start over-ride postbit avatar size */ .b-userinfo .b-avatar, .b-userinfo .b-avatar img { max-height: 128px; max-width: 128px !important; width: 100px; /* height: 100px; */ } /* End over-ride postbit avatar size */ /* Start avatar border */ .b-avatar--thread img { border: 2px solid #fff; } /* End avatar border */ /* End avatar edit */
- Top
- Translate
- Bottom
Leave a comment:
-
Thank you! It is working on my website in the default style. However, it is not working on a customized style (Metro). Do you think it is an error or bug in the customised style?
www.interpretersweb.com/forums
- Top
- Translate
- Bottom
Leave a comment:
-
Yes by forcing the avatar to be square using CSS. But it may not look good as I mentioned in my previous post.
- Top
- Translate
- Bottom
- Likes 1
-
That's not a bug. That happens when an avatar is not square. If you force it to be square using CSS, the avatar will be skewed or stretched and may not look good.
- Top
- Translate
- Bottom
Leave a comment:
-
I got a bug on some avatars.
I'm pretty sure that is from image size.
Is there possible to fix this bug?
- Top
- Translate
- Bottom
Leave a comment:
-
Done, thanks. Now the larger, postbit, avatars look good with a border and drop-shadow,while the small ones elsewhere are clean an unencumbered.
- Top
- Translate
- Bottom
-
The square border is by default coming from the avatar anchor link which has b-avatar--thread CSS class. If you want to get rid of it, then override it with this code.
Code:.b-avatar--thread { border: 0; }
Code:.b-avatar--thread img { border: 1px solid #fff; }
- Top
- Translate
- Bottom
- Likes 1
Leave a comment:
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Reply to Topic Starter Ribbon for vBCloudby glennrocksvbThanks for reporting. I'll bookmark this post and check the issue.04-22-2024, 06:40 PM
-
Reply to Topic Starter Ribbon for vBCloudby MitchIt seems since the 6.0.4 update the topic starter is no longer working04-22-2024, 05:02 PM
Leave a comment: