vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   icon before username by css. (https://vborg.vbsupport.ru/showthread.php?t=248678)

Doublecrosser 08-15-2010 03:33 PM

icon before username by css.
 
Hi Guyz , i want to add an icon before some specific usergroup, like this http://lulzimg.com/i/8daadd38.png
But I want to add this through css, I have the css code , But i can't use it.
Here is the css code. i m using vB4.x
Code:

.ra
{
        background:no-repeat center left;
        padding-left:13px;
}
.shoutbox_thread .ra
{
        background:none !important;
        padding-left:0 !important;
}
.bigusername .ra
{
        padding-left:18px;
}
a:hover .ra
{
        text-decoration:none;
}

.r-own{color:#ff0000;}
.r-ad{color:#ff0000;}
.r-sm{color:#088A4B;}
.r-sec{color:#0080FF;}

/* Owner */
.alt2 .r-own,
.alt1 .r-own,
.alt1Active .r-own
{
        padding-left:16px;
}
.alt1 .r-own,
.alt2 .r-own,
.alt1Active .r-own{
        background-image:url(images/ranks/r-own1.gif);
}
.bigusername .r-own{
        background-image:url(images/ranks/r-own2.gif);
        padding-left:22px;
}

/* Administrator */
.alt1 .r-ad,
.alt2 .r-ad,
.alt1Active .r-ad{
        background-image:url(images/ranks/r-ad1.gif);
}
.bigusername .r-ad{
        background-image:url(images/ranks/r-ad2.gif);
}

/* Super Moderator */
.alt1 .r-sm,
.alt2 .r-sm,
.alt1Active .r-sm{
        background-image:url(images/ranks/r-sm1.gif);
}
.bigusername .r-sm{
        background-image:url(images/ranks/r-sm2.gif);
}

/* Sectional Moderator */
.alt1 .r-sec,
.alt2 .r-sec,
.alt1Active .r-sec{
        background-image:url(images/ranks/r-sec1.gif);
}
.bigusername .r-sec{
        background-image:url(images/ranks/r-sec2.gif);
}

So can any one help me in doing this.
I've tried this by adding <div> code in HTML markup, But this ain't working.
Any Help will be appreciated (:
Thanks~


All times are GMT. The time now is 05:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00974 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete