Click to See Complete Forum and Search --> : Fixed text size
What code do I enter (if that's how it's done) in order for a visitor to be unable to alter the text size on my website by using the Text Size item in his View menu?
When the text size is actually changed, my beautiful website (constructed over hundreds of unsociable hours) suddenly becomes a dog's dinner.
alehambre
06-02-2006, 04:45 PM
This is something the browser/user has control over, the best you can do is design your site to work correctly with the defaults of the popular browsers. Are you specifying a font size using CSS? There are many controls available to avoid dog's dinner using CSS, but ultimately it does depend on the user's browser settings.
To get more help I would suggest posting your source code.
the tree
06-02-2006, 05:15 PM
The Lord may giveth and the Lord may taketh away but you are a mere developer so thoust canst giveth more than a document and cannot taketh away the mighty power of your visitors to invoke change in thier web-browsers-th.
nataliemac
06-02-2006, 05:16 PM
You can't stop users from re-sizing your text.
Your best bet is to use relative sizes, so that even when the text is made larger or smaller, the page will look a little crazy but still be usable and readable.
--Natalie
You can't stop users from re-sizing your text.
Your best bet is to use relative sizes, so that even when the text is made larger or smaller, the page will look a little crazy but still be usable and readable.
--Natalie
I have tried changing the text size (both up and down) of many big, sophisticated websites that I have visited - and nothing happens.
How do they do that?
The Lord may giveth and the Lord may taketh away but you are a mere developer so thoust canst giveth more than a document and cannot taketh away the mighty power of your visitors to invoke change in thier web-browsers-th.
Sorry. Belief in myths and dead language is of no use.
Jack O'Connell
06-02-2006, 11:52 PM
If it is text that will never change you could write it as an image
This is something the browser/user has control over, the best you can do is design your site to work correctly with the defaults of the popular browsers. Are you specifying a font size using CSS? There are many controls available to avoid dog's dinner using CSS, but ultimately it does depend on the user's browser settings.
To get more help I would suggest posting your source code.
Here is my head code:
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./index_files/filelist.xml">
<link rel=Edit-Time-Data href="./index_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<!--[if gte mso 9]><xml>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1029">
<o:colormru v:ext="edit" colors="#19bdc1"/>
<o:colormenu v:ext="edit" strokecolor="#19bdc1"/>
</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
<STYLE TYPE="text/css">
<!--
BODY
{font-size: "10pt"; font-family: "Verdana, Arial, Helvetica, sans-serif"; font-color:black}
TABLE
{font-size: "10pt"; font-family: "Verdana, Arial, Helvetica, sans-serif"; font-color:black}
-->
</style>
</head>
<style type="text/css">body { margin: 0; padding: 0; }</style>
</head>
Here is a typical body code:
<font size="1" style='position:absolute; margin-left:204pt;margin-top:76pt;
mso-position-horizontal:absolute;mso-position-vertical:absolute'/>
<a href="heads-northamerica.htm">NORTH AMERICA<br>
Hawaii<br>
Aleutian Is.<br>
Bermuda<br>
East Caribbean</a></font>
If it is text that will never change you could write it as an image
On a site the size of mine that would clock up too many megs and frustrate visitors too much.
felgall
06-03-2006, 05:16 PM
Stoping people with bad eyesight from being able to resize your content so that it is big enough for them to read WOULD be really frustrating. Define your base font size in em and use percentages for the rest so as to take the frustration away from your visitors by making it as easy as possible for them to resize the text on your page. Not everyone knows how to install their own stylesheet into a browser so as to most easily get all web pages displaying consistently the way that they want.