Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Global Font Size Setting: Changing Percentage and related EM Font Sizes

    Good day to all of the Zen Cart ppl!

    Recently, I did a not-so-good thing and began setting type sizes throughout my new ZC 1.3.8A install...backwards.



    I set the EMs first, but failed to set the global type size percentage. So, there were some i instances of tty bitty text that were not readily changeable.

    I was going to just find every instance of unselected type and individually ID them and thus set a larger type size via the style sheet, but then I realized this is a lame workaround.

    So now, I'm going to do this the right way.

    I found, from another poster on this forum, that on line 16 of the style sheet,

    font-size: XX%

    ALL non ID'ed, class'ed, or otherwise selected type can be set, size-wise.

    So now....

    I went from 65% to 75%

    That's an increase of 1.154% (75.01%)

    OK, slightly off....

    Now, I would like to resize all of the type I set in the stylesheet using em at the original 65%, to a new value that will keep them the same size, at the new 75% global font size setting.

    I realize that I cannot simply multiply all type set with EM values by 1.154%, because the new fixed point the type is 'compared with' is already 1.154% larger.

    Would I simply take 1.154% off the current em value?

    example....
    at 65%

    Code:
    h1 {
    	font-size: 1.8em;
    	color: #000000;
    	}
    Would this simply be:

    1.8 / 1.154 = 1.5598 em

    ???

    Thanks,
    Donn
    Last edited by Donn; 15 Feb 2009 at 09:05 PM. Reason: forgot to sign my name

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Global Font Size Setting: Changing Percentage and related EM Font Sizes

    I don't think that font sizing to such a fine tolerance (to 4 dec. places) is possible (I may be wrong).

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

    Default Re: Global Font Size Setting: Changing Percentage and related EM Font Sizes

    Depending on the browser, some decimal point sizes will simply render at the nearest size the browser understands. So no, there's no need to set anything quite that precisely, and not much value to be gained from doing so.

    Were your original changes to the em quantities made in an essentially stock stylesheet? Then I would simply go back to that stylesheet and scrolling down it and your current one side-by-side in an editor, change each em back to what it is in the original stylesheet. I don't think there are that many to deal with that this would be onerous.

    Acckk!! I take that back; there are over a hundred of them!!!

    Rob

 

 

Similar Threads

  1. v150 Need help changing font color and size
    By ilovesteppin in forum General Questions
    Replies: 3
    Last Post: 12 Feb 2013, 07:09 PM
  2. changing font size and colour
    By actionx in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 6 May 2011, 11:17 AM
  3. Need help changing Global Font
    By alma1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jul 2008, 09:36 PM
  4. 3 problems: varying font sizes, image link borders and body font size
    By JackA in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Dec 2007, 08:28 AM
  5. Font and font size for Welcome to... message
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Jun 2006, 04:03 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR