| Author |
Message |
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 12:10 pm Post subject: I need help changing the font within the style.css. |
|
|
| I am new to php nuke and have took over someones position who just recently left the company. But I am needing help on changing the font on a website he was developing. I have tried a few things in the style.css but had no luck. I would appreciate any help or information I can get on this issue. Thanks |
|
| Back to top |
|
|
AdBot
|
| Post subject: I need help changing the font within the style.css. |
|
|
|
|
|
| Back to top |
|
 |
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Mon Apr 11, 2005 2:01 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
Which style.css are you changing?
Which few things are you changing?
This fonts that you are changing (I'm assuming that's what you're doing.), do you have those fonts installed on the box you're viewing your site with?
Are you clearing out your local cache before reviewing the site in question?
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 2:43 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
| I have tried changing all the fonts that I seen available to change to see if one of them would take care of what I needed. I am not for sure what style.css it is exactly but i go through public_html themes and then vi style.css. I am new at this so I am not for sure how to answer your questions correctly but I will do my best. and I have tried clearing out the cache of the browser as well. |
|
| Back to top |
|
|
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Mon Apr 11, 2005 2:53 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
Take a look at the source code of the pages that PHPNuke is generating for you. You will notice something called a 'class' and a name assigned to that class. Your browser is seeing that 'class' and looking within your style.css file for the font information that it needs to display the text correctly. For example, if the text has a class called "smith," it's looking within the style.css file for something called "smith" and using the information provided with that section.
Do note that it uses the style.css file within the actual subdirectory of the theme that you are using. There maybe a number of themes installed. You need to make sure that you're modifing the correct one. You can discover the name of the theme by reviewing the preferences page within your PHPNuke admin section.
Also remember that the name of the font has to be exactly matched to the name of the installed font within your home computer. If it's 'Ariel' on your home PC, it has to be 'Ariel' within the css file. 'ariel' won't cut it.
A quick search in google suggests this site for a review of css files:
http://www.htmldog.com/guides/cssbeginner/
Good luck,
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 2:57 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
| I think they are ok with the font type, they are wanting me to change the font size. I prolly didnt make it clearer. that is my fault. I am using the AHP theme. and I am just trying to change the font size. they want to make it bigger than what it is now. |
|
| Back to top |
|
|
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Mon Apr 11, 2005 3:14 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
ctatech wrote: › I think they are ok with the font type, they are wanting me to change the font size. I prolly didnt make it clearer. that is my fault. I am using the AHP theme. and I am just trying to change the font size. they want to make it bigger than what it is now.
Then you want to be changing the font-size settings within the style.css file. Do note that your browser maybe overriding whatever setting you've choosen though.
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 3:26 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
| I have changed the font sizes and it didnt make any difference so it must be that the browser is overiding it. How do I set it to where it doesnt override it all the time? |
|
| Back to top |
|
|
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Mon Apr 11, 2005 4:15 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
Tools -> Internet Options -> Accessibility.
Also make sure you're setting the font sizes to settings like 14px. You need the px bit in there for it to work.
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 4:21 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
| How would I set that up to where everyone wanting to view that page wont have to do that? Or will everyone who wants the font bigger have to change that setting? |
|
| Back to top |
|
|
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Mon Apr 11, 2005 4:45 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
Um, was that setting turned on within your browser? If not, it's probably moot then.
Are you sure the font size changes aren't working? Have you tried going from something like 10px to 20px just to see if anything changes? Remember, this is pixels we're talking about. 72 of them per inch on your screen. You can't go 1 or 2 and expect to see a large change.
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Mon Apr 11, 2005 4:48 pm Post subject: Re: I need help changing the font within the style.css. |
|
|
| it wasnt set to ignore or anything like that, and i set it to ignore font sizes specified and it made a difference. I will try changing it to something more drastic and see if it changes. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Apr 12, 2005 6:30 am Post subject: Re: I need help changing the font within the style.css. |
|
|
| realize, though, that if your users have their browsers set to override font sizes, all this work is for naught (or is it nought?). |
|
| Back to top |
|
|
drmike
Wizard


Joined: Mar 20, 2005 Posts: 229 Location: Charlotte, NC
|
Posted: Tue Apr 12, 2005 7:55 am Post subject: Re: I need help changing the font within the style.css. |
|
|
dari wrote: › realize, though, that if your users have their browsers set to override font sizes, all this work is for naught (or is it nought?).
I've only seen that set a few times but the setting does come up every once in a while. It'll get set and the user will forget all about it and then start wondering why things always look the same on every page or why text doesn't fit correctly on a page.
Usually those with visual issues set this so they can get used to one size text on their screen.
-drmike |
|
| Back to top |
|
|
ctatech
Novice


Joined: Apr 11, 2005 Posts: 22
|
Posted: Tue Apr 12, 2005 9:43 am Post subject: Re: I need help changing the font within the style.css. |
|
|
| I dont think they have it set to override the font settings, I have tried to get them to just go with a different theme cause that takes care of the font sizes but they didnt like that idea. So where at exactly in the style.css file do I change to where it will change the size of the whole website. Cause it looks like there are different sections all with different fonts. If there is one section to where it takes care of it all with just one change that would be great. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Apr 12, 2005 11:03 am Post subject: Re: I need help changing the font within the style.css. |
|
|
| look through the CSS file for "font-size" entries...since there won't be one single place for them (ie, there will be an entry for "body", one for "a active", "a hover", etc). |
|
| Back to top |
|
|
|
|
|
|
|