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.

Can't change Username Fonts

View previous topic View next topic Go down

Solved Can't change Username Fonts

Post by cfdanz on January 5th 2014, 4:24 pm

I want to change my username font to Papyrus, but it doesn't work!
Here's all of my CSS code: (New Forum)

Code:
//Username Fonts

a[href="/u1"] {
font-family: 'Papyrus', serif;
font-size: 12px;
color:#ff0000;
}

// Customization for Groups

a[href="/g2-administrator"] {
background: url("http://illiweb.com/fa/admin/couronne.png") no-repeat;
padding-left: 19px;
padding-top: 2px;
}

cfdanz
Forumember

Male Posts : 26
Reputation : 1
Language : Tagalog

Back to top Go down

Solved Re: Can't change Username Fonts

Post by Ange Tuteur on January 5th 2014, 4:35 pm

Hello cfdanz,

The reason the code is not working is because you made your selectors invalid by placing text and slashes before them. What you're doing is a ' oneline javascript comment ' which is not supported in CSS, hence breaking your code.

You should instead write comments as :
/* THIS IS A CSS COMMENT */

Code:
/* Username Fonts */

  a[href="/u1"] {
  font-family: 'Papyrus', serif;
  font-size: 12px;
  color:#ff0000;
  }

  /* Customization for Groups */

  a[href="/g2-administrator"] {
  background: url("http://illiweb.com/fa/admin/couronne.png") no-repeat;
  padding-left: 19px;
  padding-top: 2px;
  }

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Can't change Username Fonts

Post by cfdanz on January 5th 2014, 4:38 pm

Solved! Thanks for the help mate Very Happy
CHEERS!

cfdanz
Forumember

Male Posts : 26
Reputation : 1
Language : Tagalog

Back to top Go down

Solved Re: Can't change Username Fonts

Post by Ange Tuteur on January 5th 2014, 4:41 pm

You're welcome I love you

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