473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Thoughts on font-size control

I have been researching some different techniques to controll font size
on a webpage and offer users a way to easily manipulate the font and
was curious as to what methods others were using/had used in the past
for this sort of thing.

I have been using static point font sizes on a stylesheet. With a
script that swaps out the stylesheet for one with larger point sizes
upon clicking a button. I chose this technique out of all the others I
have seen because it seemed to offer the most compatability with
slightly out of date browers etc. However the built in font controll
from IE, Firefox etc. still wreaks havoc on my sites layout.

I am worried about using em's as I just dont see how to make that work
in conjunction with images that are far less plyable than the text and
other design elements.

So, is there any way to supress the view>textsize? Has anyone had
success with em's? Or does anyone have an interesting way to tackle
this problem?

Feb 24 '06 #1
1 1219
d
"slipped" <kr**********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I have been researching some different techniques to controll font size
on a webpage and offer users a way to easily manipulate the font and
was curious as to what methods others were using/had used in the past
for this sort of thing.

I have been using static point font sizes on a stylesheet. With a
script that swaps out the stylesheet for one with larger point sizes
upon clicking a button. I chose this technique out of all the others I
have seen because it seemed to offer the most compatability with
slightly out of date browers etc. However the built in font controll
from IE, Firefox etc. still wreaks havoc on my sites layout.

I am worried about using em's as I just dont see how to make that work
in conjunction with images that are far less plyable than the text and
other design elements.

So, is there any way to supress the view>textsize? Has anyone had
success with em's? Or does anyone have an interesting way to tackle
this problem?


Accessibility is the new in-thing, so you won't find much support in the
community for fixed-size fonts. EMs are the way to go :) You have to bear
in mind if someone wants massive fonts, they're not going to mind if the
massive fonts disrupt the layout of the page. Indeed, it's quite trivial to
adapt a website to be "stretchy" to the point where any size of font will
not cause massive page-breakdown.

Swapping out CSS files sounds like a great way to do it, as you can change
one reference to font size, and that's job done.
Feb 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Richard R Plourde | last post by:
I've got a problem that IE doesn't seem to use the entire font unicode subgroups from a hinted font file. When I display the following web page in IE 6 as opposed to Firefox 1.0 PR. Check out...
6
by: Lyle Fairfield | last post by:
Recently I've used ADPs in ways in which I have not previously used MDBs. I've been encouraged to do so because of ADPs clear separation from the data in the db, and by their ability to use MS-SQL...
15
by: Deano | last post by:
I've posted about this subject before but haven't really got anywhere yet. I have now come up with a plan of action that takes into account my strong desire to implement save/discard functionality...
10
by: name | last post by:
Well, I've reached a milestone: Here I have an adequately functional application I can't use without some preliminary stuff. If I'm going to assign dynamic memory, I need to know the file length,...
3
by: Wim | last post by:
I would like to store the ListView font in the XML config file. So I have a string variable listFont that stores the font (font.ToString()). It must be a string variable because a Font object...
4
by: BobAchgill | last post by:
Is it possible to use a font that is not stored in the windows font directory? I would like to use a font that is stored in my application directory... But this does not seem to work... ...
6
by: BobAchgill | last post by:
Has anyone had success with writing text using a private font that was not already installed to the system? When I try the example code in NET Framework Developer's Guide called “Creating a...
1
by: Henry Jones | last post by:
I found some code to change the font on a button to bold: private void btnBold_Click(object sender, System.EventArgs e) { btnCalculate.Font = new Font(btnCalculate.Font, ...
24
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available...
16
by: carlbernardi | last post by:
Hi, I was wondering if there is way use a font that is somehow kept in the code instead of having to load it? I am working on a single script that so far can produce images and html but I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.