Zen Follower
- Join Date:
- Oct 2007
- Posts:
- 241
- Plugin Contributions:
- 0
Global Font Size Setting: Changing Percentage and related EM Font Sizes
Good day to all of the Zen Cart ppl! :smile:
Recently, I did a not-so-good thing and began setting type sizes throughout my new ZC 1.3.8A install...backwards.
:shocking::shocking:
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. :dontgetit
So now, I'm going to do this the right way. :yes:
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%
h1 {
font-size: 1.8em;
color: #000000;
}
Would this simply be:
1.8 / 1.154 = 1.5598 em
???
Thanks,
Donn