Page 1 of 1

Can you change font size, like you can change Font Family?

Posted: Thu Apr 25, 2013 7:28 am
by simonmlewis

Code: Select all

#navigation #topNavRev2 
{
margin: 0; padding: 0; list-style: none; height: 40px; line-height: 40px;
font-family: impact, arial;
}
Some browsers like Safari cannot see Impact. So my CSS defaults to Arial. Problem there, is that the 'tabs' the links are in, do not adjust accordingly.

So, like you can set font-family, to be Impact [or] Arial [or] whatever/...... can you do this with font size.
So if there are 2 fonts in the list, I give two font sizes.

OR.... is there a way in the CSS file, to show one font if the browser is NOT Safari, and another font if it is?
Instead of having to do multiple CSS files. (where one could easily be missed in an update during development.

Re: Can you change font size, like you can change Font Famil

Posted: Thu Apr 25, 2013 11:57 am
by s.dot
They should adjust accordingly. Add a comma in your stylesheet, like this.

[text]#navigation, #topNavRev2[/text]

That should fix that problem. The browser will display according to the order you have. If not the first one, then the second one, if not the second one, then the third one, and so on.

Re: Can you change font size, like you can change Font Famil

Posted: Fri Apr 26, 2013 2:24 am
by simonmlewis
Sorry....? Don't understand.

Re: Can you change font size, like you can change Font Famil

Posted: Sun May 26, 2013 5:25 am
by social_experiment

Code: Select all

#navigation, #topNavRev2
the comma applies the styling to both id navigation and topNavRev2

Code: Select all

#navigation #topNavRev2
this is incorrect syntax within the stylesheet, probably why the styling doesn't work