Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    4
    Plugin Contributions
    0

    Default Firefox defaulting to standard font - Help needed

    Im using Zen Cart 1.3.8 with a heavily modified 'Darkness' template.

    My website views fine in IE8 however (windows) Firefox dislikes my font setup in the CSS and defaults to it's inbuilt configured font.

    If you view the source code you can see this entry before the main text:

    <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB" style="FONT-FAMILY: "><span lang="EN-GB" style="FONT-FAMILY: "><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
    <span lang="EN-GB" style="FONT-FAMILY: "Century Gothic"">

    In my CSS I have:
    BODY {
    /* font-family: verdana, arial, helvetica, sans-serif, avant garde; */
    font-family: Century Gothic, verdana, arial, helvetica, sans-serif; avant garde;

    code section
    CODE {
    font-family: arial, verdana, helvetica, sans-serif, avant garde;
    /* font-family: avant garde; */

    As im sure you can tell by now I do not really understand the CSS font code do's and dont's. Anyone know what I should have done in my CSS for firefox to like my Century Gothic Font?

    Website: http://www.blackcarat.co.uk

    Any help much appreciated

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Firefox defaulting to standard font - Help needed

    For starters, it looks like you are writing up your product descriptions in MS Word, then using CTRL+C and CTRL+V to get the text (which is now formatted) into the product description field.

    This will just create headaches and problems.

    Font usage is limited to what a browser is capable of interpreting, and older browsers read fewer fonts.

    Text in product descriptions should be basic HTML formatted and you can apply DIVS and allocate style ID's and CLASSES to these divs.

    You then create declarations in a stylesheet that will apply these IDv and / or CLASS settings to the page.

    Unfortunately, this is not a forum for HTML and CSS lessons, but if you go to www.w3schools.com you will see many good tutorials on these subjects.
    20 years a Zencart User

  3. #3
    Join Date
    Mar 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Firefox defaulting to standard font - Help needed

    I fixed the code on the homepage.

    I fixed the code in the CSS sheet so all browsers are now picking up the right font and size.

    The text still looks grainy and horrible in opera / safari / firefox.

    Im thinking it may be to do with the font-size: 70% command.

    Hmm

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Firefox defaulting to standard font - Help needed

    Yeah, that's pretty small, especially on larger screens set to high resolutions. The font quality improves when I use the browser to bump it up one step in size, so maybe change 70% to 85% or so and see how you like it.

    Also, you've specified Century Gothic as the first font choice. That is a very thin-stroke font, so it looks a bit unclear at small sizes. Lucida Sans, your second choice, is much clearer on screen at small sizes, so maybe just delete Century Gothic from the list of fonts.

    One final note: you've specified lucida sans, without quotes or capitals. Some browsers won't read that correctly. Best to use "Lucida Sans".

    Rob
    Last edited by rstevenson; 21 Dec 2009 at 03:00 PM.

 

 

Similar Threads

  1. Changing Font Style of new products on the index page [HELP NEEDED]
    By kal in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2010, 05:26 PM
  2. font sizes different in IE and FireFox
    By dzuberbu in forum General Questions
    Replies: 3
    Last Post: 31 Aug 2009, 07:50 PM
  3. Size of font in Firefox so small, IE is fine??
    By Peterelli in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jan 2009, 03:53 PM
  4. IE & Firefox... Why So Different - Help Needed
    By DPM in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Sep 2008, 02:15 PM
  5. Issues - differences in IE & Firefox - help needed
    By woodlandsprite in forum General Questions
    Replies: 0
    Last Post: 23 May 2006, 06:46 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
  •  
disjunctive-egg