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 before username

View previous topic View next topic Go down

Solved Image before username

Post by I Mozilla I on January 2nd 2011, 10:15 pm

Well someone told me the code down here if you put this in CSS. It would make an image before the username of the person(profile). But for me it doesn't work, is the code wrong? Help please.

Code:
a[href="profile link"]{
padding-left: 13px;
background: url(image link) no-repeat left;}


Last edited by I Mozilla I on January 2nd 2011, 10:56 pm; edited 1 time in total

I Mozilla I
Forumember

Posts : 62
Reputation : 0
Language : Dutch

Back to top Go down

Solved Re: Image before username

Post by Xanthis on January 2nd 2011, 10:33 pm

Brackets are HTML. They're not proper language for CSS, so even if the code is right, it won't work because it doesn't read:

Code:
a[href="profile link"]

Xanthis
Forumember

Male Posts : 210
Reputation : 6
Language : English

Back to top Go down

Solved Re: Image before username

Post by I Mozilla I on January 2nd 2011, 10:53 pm

Fixed it, though it's buggy.

Lock please.

I Mozilla I
Forumember

Posts : 62
Reputation : 0
Language : Dutch

Back to top Go down

Solved Re: Image before username

Post by RoNo on January 3rd 2011, 3:33 am

@Xanthis wrote:Brackets are HTML. They're not proper language for CSS, so even if the code is right, it won't work because it doesn't read:

Code:
a[href="profile link"]
That's misinformation... It works fine Cool

Examples using brackets on a Css sheet:

Phpbb3...
Removing "usergroups" from the navbar
Code:
a[href="/groups"] {display:none !important;}


Pun version...
Removing an image by it's "alt" name
Code:
td.row1 [alt="Who is Online ?"] { display: none !important;}



Since the issue appears to be resolved,
this topic is closed.
RoNo
General rules
Tricks & Tips
FAQ listing
For founders who lost their passwords
About support requests by PM
Announcements & Updates

RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.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