The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Image instead of username?

View previous topic View next topic Go down

Solved Image instead of username?

Post by Klonoa on March 19th 2014, 2:57 pm

Is it possible to put image as/instead of username in css or any other coding thingy?

thanks!

Klonoa
Forumember

Male Posts : 161
Reputation : 5
Language : English, Serbian
Location : Repulika Srpska

http://pokemonworldrpg.pokemonlegend.org/

Back to top Go down

Solved Re: Image instead of username?

Post by Ange Tuteur on March 19th 2014, 3:53 pm

Hello Klonoa,

Yes, it is possible via CSS.

You could do it as a background image :
You will need to adjust the padding to the size of the bg image
Code:
a[href="/u1"] {
  font-size:0;
  background:url('http://i57.servimg.com/u/f57/18/21/41/30/name10.png') no-repeat;
  padding:4px 22px;
  display:inline-block;
}

or you could do it as new content :
Code:
a[href="/u1"] { font-size:0; }
a[href="/u1"]:after {
  content:url('http://i57.servimg.com/u/f57/18/21/41/30/name10.png');
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Image instead of username?

Post by Klonoa on March 19th 2014, 4:56 pm

Thank you very much Ange.
Solved.

Klonoa
Forumember

Male Posts : 161
Reputation : 5
Language : English, Serbian
Location : Repulika Srpska

http://pokemonworldrpg.pokemonlegend.org/

Back to top Go down

Solved Re: Image instead of username?

Post by Ange Tuteur on March 19th 2014, 5:17 pm

You're welcome :rose:

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum