Jump to content

How make this rank


samavoda

Recommended Posts

Check out this article https://cssgradient.io/blog/css-gradient-text/ for CSS text gradients.

To add images, just use the HTML img tag:

<img src="link_to_your_image.png">

If you want to use CSS-only, take a look at the CSS ::before or ::after Selector for the image.

Edited by Oni
  • Thanks 1
  • Upvote 1

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

2 hours ago, samavoda said:

First work tnx for help, for second ask if it can be a little more detailed?

Sure pal! ;)

Common way using the HTML <img> tag:

<img src="https://icons.iconarchive.com/icons/chanut/role-playing/24/Potion-icon.png"><span>samavoda</span>

Which looks like this: BGstsib.png, We could also swap the position of both elements: 1ByYc2X.png.

<span>samavoda</span><img src="https://icons.iconarchive.com/icons/chanut/role-playing/24/Potion-icon.png">

The <span> tag is not necessary in this example but in general it's used to grouping of inline-elements/properties, like this:

<span style="color: red;font-weight: bold;">samavoda</span>

Outcome: vue57kw.png

Alternative way using CSS only (will be cached):

.samavoda {
	color: #b57efa;
	font-weight: bold;
}

.samavoda::before {
	content: url(https://icons.iconarchive.com/icons/chanut/role-playing/24/Potion-icon.png);
}

As you can see we have 2 classes, the second one extends the first one using a ::before Selector. Let's see what that selector does:

<span class="samavoda">samavoda</span>

Outcome: y4IhM7Z.png, as you can see it does exactly the same thing, except that we have to manually center the vertical-align of the image. Using ::after instead of ::before does the same as swapping elements in HTML templates like showed above. This way just makes your code more maintainable.

Stick to the first way if you don't have too much inline-properties, it's easier and your styling doesn't get cached. ;)

Edited by Oni

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

This is not just for formatting groups, you can apply these everywhere you want. You can paste the CSS code in your themes custom.css as an example.

If you need assistance, show me exactly what you want to achieve and I'll help you.

Edited by Oni

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

On 10/2/2020 at 4:32 PM, Oni said:

This is not just for formatting groups, you can apply these everywhere you want. You can paste the CSS code in your themes custom.css as an example.

If you need assistance, show me exactly what you want to achieve and I'll help you.

See PM.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...