.label.label--test
{background: url(https://scapecrunch.com/burr.webp) no-repeat left center;
background-size:20px;
background-position:2px;
background-color:yellow;
color:black;
padding-left:28px
}
label label--test
.prefix--nameprefixhere {
color: #fff;
background: url('https://your-image-url.com/prefix-bg.png') no-repeat center center;
background-size: cover;
padding: 2px 8px;
border-radius: 4px;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
Try this/* #### Thread Prefixes #### */
.prefix--burr
{
background: url('https://scapecrunch.com/burr.gif') no-repeat center center;
background-size: cover;
padding: 2px 8px;
font-size: 0px;
}
/* #### Thread Prefixes #### */
.prefix--burr::before
{
background: url('https://scapecrunch.com/burr.gif') no-repeat center center;
background-size: cover;
padding: 2px 8px;
font-size: 0px;
}
.label.label--test
{background: url(https://scapecrunch.com/burr.webp) no-repeat left center;
background-size:20px;
background-position:2px;
background-color:yellow;
color:black;
padding-left:28px
}
label label--test
The image doesn't come through.
.prefix--burr {
display: inline-block;
line-height: 20px;
font-size: 15px;
&::before {
content: url('https://scapecrunch.com/burr.gif');
margin-right: 4px;
vertical-align: middle;
top: 1px;
position: relative;
}
}
Sadly, no image showing... I'm stumped.CSS:.prefix--burr { display: inline-block; line-height: 20px; font-size: 15px; &::before { content: url('https://scapecrunch.com/burr.gif'); margin-right: 4px; vertical-align: middle; top: 1px; position: relative; } }
Bingo! We have a winner. Thank you so much!This is what I'm using and it's working.
see it live here with your image https://otra.org.uk/community/forums/test-posts.49/
View attachment 321515
CSS:.label.label--test {background: url(https://scapecrunch.com/burr.webp) no-repeat left center; background-size:20px; background-position:2px; background-color:yellow; color:black; padding-left:28px }
class for custom prefix =label label--test
View attachment 321513
.label.label--test
{background: url(https://scapecrunch.com/burr.webp) no-repeat left center;
background-size:20px;
background-position:2px;
background-color:yellow;
color:black;
padding-left:28px
}
You're welcome, you'll obviously need to experiment a bit with px dimensions etc.Bingo! We have a winner. Thank you so much!
I think this is done using an addon from one of the Turkish webmaster websites - https://xenforo.gen.tr/xenforo-kaynaklari/xengentr-onek-tasarim-sistemi.1218/How can create prefixes like this? Thx
We use essential cookies to make this site work, and optional cookies to enhance your experience.