/    Sign up×
Community /Pin to ProfileBookmark

default fonts in Chrome and Firefox

On all of our website’s pages, the default font in our style sheet is Verdana. Within Internet Explorer, all fonts display properly.
However, within Chrome and Firefox, we’ve noticed that fonts within tables display as the browsers default font (Times New Roman) instead of Verdana.
Regardless of the method of changing the font (using CSS or font tags), it always displays the default browser font.
This only occurs within tables. I guess we can ask people to change the browser’s default font setting but we’d like to avoid this if possible.
Has anyone seen this before and/or do you have any suggestions?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@deathshadowAug 12.2014 — Are you actually setting it on the tables? Tables are notorious for not inheriting values in 'modern' browsers that they do inherit in IE.

Though really asking for a "Specific" font is nonsense, since Linux and Mac users are unlikely to have that; hence why your font-family should be a stack of fallbacks.

Really without seeing the site or code in question, it's hard to weigh in meaningfully. Could be any of several dozen things interfering... from a specificity error to broken markup.
Copy linkTweet thisAlerts:
@Billy_BobAug 12.2014 — If the browser's style sheet uses !important, you can't override it

Used to be you could..

Try using it and see what happens

font-family:"Times New Roman",Georgia,Serif; !important;
Copy linkTweet thisAlerts:
@Kevin2Aug 12.2014 — Are you actually setting it on the tables?[/QUOTE]

Ya, my first thought was something like this:
td {
font-family: 'Verdana', sans-serif;
}


Tables are notorious for not inheriting values in 'modern' browsers that they do inherit in IE.[/QUOTE]
Are you saying IE11 isn't 'modern'??? :eek:

If so, I'll agree! ?
Copy linkTweet thisAlerts:
@deathshadowAug 14.2014 — Are you saying IE11 isn't 'modern'???[/quote]
There's a reason I usually say "modern browsers [b]and[/b] IE9/newer".
×

Success!

Help @ChrisCT77 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 7.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @Nanditha,
tipped: article
amount: 1000 SATS,
)...