Results 1 to 3 of 3

Thread: Fonts

  1. #1
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    Question Fonts

    I have been using CSS for a little while now and all of a sudden when I preview my websites in browsers on any machine the font I have chosen in the CSS style sheet gets over written by the users default browser settings. Is there something I need to add to stop it from doing that or is their no way. Below are a few of my websites so you can possibly see what I mean and have access to the style sheet.

    Thank you


  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    You possibly switched your pages from quirks mode to standards mode by adding a standards invoking DOCTYPE, or changed the css. In any case, this is incomplete and will be ignored (from line #72):

    font:Arial, Helvetica, sans-serif;
    It should be:

    font-family:Arial, Helvetica, sans-serif;
    You can use just font (which is a combo property, like border or margin, both of which have component properties that can be set separately), but then you have to specify at least the weight, often the size and always the family, in that order, space separated on one line (other font properties can also be included, if done so in their respective order*:

    font: 700 16px Arial, Helvetica, sans-serif;
    Given your current setup, it's easiest to just use font-family because you already have defined those other things separately, which is also OK to do.

    Your other font problems on this and/or other pages are probably similar, if not, let me know:

    The browser cache may need to be cleared and/or the page refreshed to see changes.


    or your favorite css reference for the proper order and syntax when using the combo font property.
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    gemzilla (08-07-2013)

  4. #3
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts


    Oh that's better, that's just me being lazy and typing font instead of font-family.. I never actually new the difference and now I do LOL.

    Thank you John

Similar Threads

  1. Various Fonts
    By james438 in forum CSS
    Replies: 18
    Last Post: 04-09-2010, 02:36 PM
  2. fonts for MAC
    By lord22 in forum CSS
    Replies: 6
    Last Post: 11-06-2009, 03:14 PM
  3. 3D fonts
    By contracer11 in forum Graphics
    Replies: 5
    Last Post: 03-11-2008, 02:57 AM
  4. Different CSS for different fonts?
    By Ilana in forum CSS
    Replies: 7
    Last Post: 07-07-2007, 08:57 PM
  5. Fonts?
    By BloomFreak in forum Other
    Replies: 7
    Last Post: 06-26-2007, 10:57 PM


Posting Permissions

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