www.webdeveloper.com
Results 1 to 5 of 5

Thread: default fonts in Chrome and Firefox

  1. #1
    Join Date
    Aug 2014
    Location
    Vernon, CT
    Posts
    1

    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?

  2. #2
    Join Date
    May 2014
    Posts
    936
    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.
    Java is to JavaScript as Ham is to Hamburger.

  3. #3
    Join Date
    Jul 2014
    Posts
    9
    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;

  4. #4
    Join Date
    Oct 2013
    Posts
    490
    Quote Originally Posted by deathshadow View Post
    Are you actually setting it on the tables?
    Ya, my first thought was something like this:
    Code:
    td {
           font-family: 'Verdana', sans-serif;
    }
    Quote Originally Posted by deathshadow View Post
    Tables are notorious for not inheriting values in 'modern' browsers that they do inherit in IE.
    Are you saying IE11 isn't 'modern'???

    If so, I'll agree!
    Last edited by Kevin2; 08-12-2014 at 03:24 PM.

  5. #5
    Join Date
    May 2014
    Posts
    936
    Quote Originally Posted by Kevin2 View Post
    Are you saying IE11 isn't 'modern'???
    There's a reason I usually say "modern browsers and IE9/newer".
    Java is to JavaScript as Ham is to Hamburger.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles