MyBB Community Forums

Full Version: Image underuser name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
So i've been wondering if i can add an image under the username. As pointless as it sounds.

<span style="color: green;"><strong><em>{username}</em></strong></span>

Is that code. As far as i know span doesn't call images, would we be able to add one someowhere?
Under or beside?

For under, just use style="background, etc.

For an image beside just use the img tags.
(2010-04-15, 11:20 PM)Scoutie44 Wrote: [ -> ]Under or beside?

For under, just use style="background, etc.

For an image beside just use the img tags.

Yea i was wondering if i just didn't learn everything about span. I guess i didn't, thanks scoutie.
Newb question. I know i have to add "background-image: url(xxx.gif)" but do i nest it or what? I've actually have no clue.
Nesting worked. Somewhat Toungue
Okay it repeats :/ I have no idea how to make it not repeat. I need to learn Span. Stupid teacher told me i'd never need to use it :/
no-repeat after the (url) part.
(2010-04-16, 01:17 AM)Joshee Wrote: [ -> ]no-repeat after the (url) part.
<span style="background-image: url no-repeat(/images/fire.gif)"<span style="color: green;"><strong><em>{username}</em></strong></span></span>

I'm guessing i did something wrong :/
Put it after the (/images/fire.gif) part
Use this instead, it is much cleaner :

<span style="background-image: url(/images/fire.gif) no-repeat; color: green; font-weight: bold; font-style: italic">{username}</span>

Wink
I'm not sure if text-weight and -style work, so if they don't you'll need to change them to font-style and font-weight.
I am so sorry, my mistake, it is font not text... Toungue

I will correct it in the original post...

(Thank you Scoutie44, for pointing out, i must be too tired tonight...)
Still nothing.

<span style="background-image: url(/images/fire.gif)no-repeat" <span style="color: green;"><strong><em>{username}</em></strong></span></span>


Edit wow this got interest, let me try your way Toungue

exdiogene it didn't work :/
Pages: 1 2