Zen Cart Logo

Font size changer

Locked

Views: 1,965

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Oct 2008, 2:05 PM
#1
travellers avatar

travellers

Zen Follower

Join Date:
Oct 2008
Posts:
143
Plugin Contributions:
0

Font size changer

As per phpbb3, for example, and myriad other websites - an 'ud/down arrow' that when clicked enlarges all font sizes by a certain amount. I would have though (which means its probably nothing like this at all) that it would be a relatively simple switch, with the link taking the browser between three or four independent versions of the css file? Izzat how it works?

27 Oct 2008, 6:04 PM
#2
yelow avatar

yelow

Zen Follower

Join Date:
Sep 2008
Posts:
115
Plugin Contributions:
0

Re: Font size changer

It is generally thought of as 'bad practice' to hard-code the font-sizes into a website, instead, zencart uses font percentages liberally.

Also, every browser has options to increase/decrease text size locally, which is usually a better solution. Also, Firefox users can CTRL+ or CTRL- the entire site (images and table and divs and everything.)

-Tim

1 Nov 2008, 1:44 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Font size changer

... with the link taking the browser between three or four independent versions of the css file? Izzat how it works?

It's usually done with javascript. Google for "font size changer javascript" and you'll get lots of advice.

I don't bother doing that on sites I work on, because as Tim says, users can adjust things themselves using their browser's built-in abilities. But I have seen that little tool appearing on more sites. I just ignore it. :smartalec:

Rob

8 Mar 2009, 8:41 AM
#4
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

Re: Font size changer

Is there one file (CSS?) where I can adjust the base font size?

8 Mar 2009, 9:36 AM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Font size changer

AnitaB:

Is there one file (CSS?) where I can adjust the base font size?

An,
includes/ templates/ your_template/ templates/ css

  1. here you will notice 3 or 4 .css sheets
  2. normally the stylesheet.css will control your site
  3. View the Tutorials/FAQS on override system
  4. Needed for future upgrades
8 Mar 2009, 6:53 PM
#6
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

Re: Font size changer

WONDERFUL! Thanks. This software is AWESOME!

I changed the body font from 62.5% to 80% and everything looks fantastic!:clap:

8 Mar 2009, 7:49 PM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Font size changer

An,
You are most welcome, glad your site is coming along