Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 8:32:35 GMT -8
Say you want your avatars to show up as circles. How would you code this???
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 11, 2016 9:29:58 GMT -8
.avatar { width: 100px; height: 100px; -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; } jsfiddle.net/LuLqtnsb/
|
|
Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 9:33:37 GMT -8
.avatar { width: 100px; height: 100px; -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; } jsfiddle.net/LuLqtnsb/It didn't turn out in a circle.
|
|
Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 9:42:06 GMT -8
Oh wait I did it on another theme and it happened to work, elli . But how do I make that center where it takes the circle from? And how do I make it work on my profile as well?
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 11, 2016 11:09:56 GMT -8
.avatar { width: 100px; height: 100px; overflow: hidden; -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; }
.avatar > img { width: 100%; height: auto; } jsfiddle.net/LuLqtnsb/1/Keep in mind that this is just the concept for rounded images. You'll have to adjust it to suit your needs.
|
|
Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 11:22:34 GMT -8
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 11, 2016 11:54:45 GMT -8
Like I said, this is just the concept for what you want. You'll need to make additional modifications yourself... but this should work for the mini profiles:
.mini-profile .avatar { width: 150px; height: 150px; overflow: hidden; -webkit-border-radius: 75px; -moz-border-radius: 75px; border-radius: 75px; }
.avatar_size_default img, .avatar_size_default default { width: 100%; height: auto; }
|
|
Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 12:20:04 GMT -8
Oh there we go. This new code you made works, the previous one did not. Thanks.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 11, 2016 12:37:08 GMT -8
Oh there we go. This new code you made works, the previous one did not. Thanks. As I've mentioned three times now, I only provided you with the concept to make a round avatar. The code works fine. The assumption was that you would implement it yourself and make the necessary adjustments, rather than me having to give you the exact answer. Apparently it was wrong to assume.
|
|
Former Member
inherit
guest@proboards.com
223026
0
Dec 1, 2024 1:57:56 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2016 12:45:41 GMT -8
Oh there we go. This new code you made works, the previous one did not. Thanks. As I've mentioned three times now, I only provided you with the concept to make a round avatar. The code works fine. The assumption was that you would implement it yourself and make the necessary adjustments, rather than me having to give you the exact answer. Apparently it was wrong to assume. I'm sorry. I'm just not very good with CSS and the like. Never actually messed with it much til' now.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 11, 2016 12:55:55 GMT -8
As I've mentioned three times now, I only provided you with the concept to make a round avatar. The code works fine. The assumption was that you would implement it yourself and make the necessary adjustments, rather than me having to give you the exact answer. Apparently it was wrong to assume. I'm sorry. I'm just not very good with CSS and the like. Never actually messed with it much til' now. You're fine, you just didn't know, I shouldn't have made that assumption haha
|
|