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.

How to change a font style/face/family (i'm confused)

View previous topic View next topic Go down

Solved How to change a font style/face/family (i'm confused)

Post by Vito-UFA on October 7th 2011, 12:53 pm

I need some help I don't know what am I doing wrong ?
First of all is this possible to change font family using CSS in this area:

I used one of the feature from Forumotion's tutorial I have modified a bit but can't achieve one thing i would like to change the font style in this area but i can't, font-weight is working properly but not font-family what am i doing wrong ?
This is my forum.
This where the fight card is located.
and the code im using in CSS:
Code:
.fightcardEAMMA {
width : 90%;
font-weight:bold;
font-family:Courier New;
border:5px solid #222222;
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-moz-box-shadow: 0px 2px 2px #000000;
-webkit-box-shadow: 0px 2px 2px #000000;
box-shadow: 0px 2px 2px #000000;
margin: 10px 10px;
padding:15px 5px 15px 15px;
background-repeat: no-repeat;
background-position: center top;
}
.fightcardEAMMA {
color: #6B6B6B;
background-color: #191816;
background-image: url('http://i40.servimg.com/u/f40/15/90/57/61/fight-11.png');
}


Last edited by Vito-UFA on October 9th 2011, 4:44 pm; edited 1 time in total

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Guest on October 7th 2011, 7:39 pm

You have two problems. The first is that the font is two words, which means it must be enclosed in quotes, like this:

Code:
font-family:"Courier New";
The second problem is that you haven't specified any fallback fonts. Many people don't have "Courier New" on their systems -- they have Courier. In addition, many other people (such as myself) disable the Courier font because it's so ugly. I'd suggest using something like this:

Code:
font-family:"Courier New",Courier,"Lucida Console";
In that way, those who have one of the two Courier fonts will load the proper font, and those without an available Courier font will see a (much better looking!) monospace font as well.

Guest
Guest


Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Vito-UFA on October 7th 2011, 10:35 pm

Unfortunetly bro nothing is happening I used second code you gave me and nothing is changing. I picked Curier New cause this is one of the forumotion default fonts and i thought this will work easy but it is not, at least i learned that this need to be in quotes Smile any other ideas ?

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by WHITESABBATH on October 8th 2011, 12:06 am

There are many different fonts, try these(Times,Arial,Helvetica,Verdana,sans-serif). Make sure your separating them with commas.

WHITESABBATH
Active Poster

Male Posts : 1198
Reputation : 119
Language : English, F-Bombs
Location : Chicago

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Guest on October 8th 2011, 12:40 am

If "nothing is changing", that means you have other things wrong with your CSS. Check to make sure you have the class name properly defined in the post. I tried to check but the URL you provided doesn't work.

Anyway, I wish you luck.

Guest
Guest


Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Vito-UFA on October 8th 2011, 5:00 am

@WHITESABBATH wrote:There are many different fonts, try these(Times,Arial,Helvetica,Verdana,sans-serif). Make sure your separating them with commas.
I tried, nothing is helping
@dion wrote:If "nothing is changing", that means you have other things wrong with your CSS. Check to make sure you have the class name properly defined in the post. I tried to check but the URL you provided doesn't work.

Anyway, I wish you luck.
There it must be everything fine with the class as long as i can remove the bold, but i cant change font thats why i dont get it.
Code:
[table class="fightcardEAMMA"][tr][td]
CONTENT
[/td][/tr][/table]
I have unlocked this area for preview,

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Guest on October 8th 2011, 5:38 am

This is why the staff here asks people to let them see your boards! One quick look at that page, and I was able to find a conflict in your CSS. Your problem will be fixed if you add this to your CSS in addition to the rule you listed above:

Code:
.fightcardEAMMA td {font-family:"Courier New",Courier,"Lucida Console";}

Guest
Guest


Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Vito-UFA on October 8th 2011, 12:56 pm

Thx bro is working now.
Can you explain me a bit why the code i used before didn't work ?
Is this because this was defined by the table ?

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by MrMario on October 8th 2011, 6:01 pm

You had a problem in your CSS like what Dion said. Neutral

MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1830
Language : test

http://test.com

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Vito-UFA on October 9th 2011, 4:44 pm

Thx guys. Solved.

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: How to change a font style/face/family (i'm confused)

Post by Base on October 9th 2011, 5:10 pm

Problem Solved:Glad your problem is solved; locked and archived. Smile

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

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