I posted one example of "text based inline styles" on my answer so that even people without style sheets knowledge can set it. A lot of user titles are shown on various pages. Therefore, user title HTML should be shorter.
I will show another example.
"Admin" > "Layout" > " Custom HTML in <head> section of every page:"
<style>
.qa-user-title {
display:inline-block;
font-size:80%;
font-weight: normal;
line-height:1;
padding:1px 2px;
background-color:#000000;
color:white;
border:2px outset #CFB53B;
margin-right:0.25em;
}
.qa-user-title-1 {
background-color:#000000;
}
.qa-user-title-2 {
background-color:#7b1005;
}
.qa-user-title-3 {
background-color:#045289;
}
.qa-user-title-4 {
background-color:#9E9E9E;
border: none;
border: 1px solid #7e7e7e;
}
.qa-user-title-5 {
background-color:#9E9E9E;
border: none;
border: 1px solid #7e7e7e;
}
</style>
"Admin" > "Users" > "User titles based on points:"
<span class="qa-user-title qa-user-title-1">Master</span>
1000
<span class="qa-user-title qa-user-title-2">Seasoned</span>
500
<span class="qa-user-title qa-user-title-3">Ace</span>
300
<span class="qa-user-title qa-user-title-4">Regular</span>
100
<span class="qa-user-title qa-user-title-5">Rookie</span>
0
This is settings of my system. Actually, user title styles are defined in the theme CSS. You can check HTML and style code with development tool of your browser.
http://www.powerqa.org/qa/
Addition, you can also use images (JPEG, animated GIF, PNG) as user titles. Since image (IMG tag) is an inline element, style code of user title will be easier.
Example1 (inline image):
<img class="qa-user-title qa-user-title-1" src="http://your-site-url/qa-theme/SnowFlat/images/qa-user-title-1.png">
1000
etc, etc
By specifying the width with the style sheet, you can change the size of the image for each page.
.qa-user-title {
width:100px;
...
}
.qa-template-question .qa-user-title {
width:150px;
...
}
Example2 (background image):
<span class="qa-user-title qa-user-title-1">Master</span>
1000
etc, etc
.qa-user-title {
width:100px;
height: 50px;
background-repeat: no-repeat;
background-position: left top;
...
}
.qa-user-title-1 {
background-image: url(http://your-site-url/qa-theme/SnowFlat/images/qa-user-title-1.png);
}
.qa-user-title-2 {
background-image: url(http://your-site-url/qa-theme/SnowFlat/images/qa-user-title-2.png);
}
...