gexur
New Member
Posts: 7
inherit
256278
0
Oct 17, 2018 5:37:27 GMT -8
gexur
7
September 2018
gexur
|
Post by gexur on Sept 27, 2018 18:09:26 GMT -8
//DELETE IMAGE//I want to get this border radius (I did it with the chrome editor) //DELETE IMAGE//
This is how I got the color box but without the border radius :/ (Sorry for my english) {if $[user.group]}
<div style="background-color:#$[user.group.color];">$[user.group.name]<br /></div>
{elseif $[user.rank]}
<div style="background-color:#$[user.rank.color];">$[user.rank.name]<br />
{if $[user.rank.stars]}
$[user.rank.stars]<br />
{/if}</div>
{/if}
dertaria.boards.net/
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Oct 9, 2018 11:15:13 GMT -8
I'm sorry if I am misunderstanding what you want, but I think it should be this:
{if $[user.group]}
<div style="background-color:#$[user.group.color];border-radius:50px;">$[user.group.name]<br /></div>
{elseif $[user.rank]}
<div style="background-color:#$[user.rank.color];border-radius:50px;">$[user.rank.name]<br />
{if $[user.rank.stars]}
$[user.rank.stars]<br />
{/if}</div>
{/if}
You can change the "50px" in border-radius for different curves. The higher the number, the more curved the edges are. You can also use percentages. Like 100% would be as circular as it can get. If you do decide to change the number, make sure it is after the : colon and before the ; semicolon. :)
|
|
gexur
New Member
Posts: 7
inherit
256278
0
Oct 17, 2018 5:37:27 GMT -8
gexur
7
September 2018
gexur
|
Post by gexur on Oct 14, 2018 15:31:35 GMT -8
That's what I want, thanks!
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Oct 15, 2018 10:03:06 GMT -8
You're welcome!
|
|