Announcement
Collapse
No announcement yet.
How to make round avatars in vB5
Collapse
This is a sticky topic.
X
X
-
Need to see the site in order to see what's happening.
- Top
- Translate
- Bottom
-
Put the border in the image itself not in its container.
Code:.b-avatar--thread img { border: 1px solid #fff; }
- Top
- Translate
- Bottom
- Likes 1
-
The format for border property is:
border: <border-width> <border-style> <border-color>;
For example:
border: 1px solid #fff;
- Top
- Translate
- Bottom
-
Where does the thin white border you have around these round avatars derive from?
I've achieved round avatars, and I've made them larger, but I can't seem to give them a border.
If I alter ...
Code:.b-avatar--thread { border: 0; }
Code:.b-avatar--thread { border: 1; }
- Top
- Translate
- Bottom
-
-
If an avatar is not a square, then it will become oval. You don't want to force it to be square as the image will be stretched.
- Top
- Translate
- Bottom
Leave a comment:
-
Originally posted by glennrocksvb View PostNo, I wasn't saying to use the code I posted in post #91. I was saying to remove it as it is the code that's causing the avatars not to be rounded.
- Top
- Translate
- Bottom
Leave a comment:
-
No, I wasn't saying to use the code I posted in post #91. I was saying to remove it as it is the code that's causing the avatars not to be rounded.
- Top
- Translate
- Bottom
Leave a comment:
-
glennrocksvb
this codeCode:{ border-radius: 100%; }
- Top
- Translate
- Bottom
Leave a comment:
-
You have this CSS code in css_additional that overrides the border-radius.
Code:* { border-radius: 0 !important; }
- Top
- Translate
- Bottom
Leave a comment:
-
Originally posted by glennrocksvb View PostToday, 11:45 AM
Editing a comment
Need to see your site in order to check if the code is correct and not overridden by other CSS.
- Top
- Translate
- Bottom
Leave a comment:
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
by matoseHi guys,
Just migrated to vB Cloud and found your forum searching for some customizations.
Nice to meet you!
m...Today, 01:25 AM -
Reply to Quick Topic Moderationby glennrocksvbCheck core/vb/api/node.php and find the closeNode function. If you are using the compressed PHAR version of the vB5 package, you will not see the api...Today, 12:00 PM
Leave a comment: