 |
|

12-07-2003, 05:45 PM
|
 |
Contributing Member
|
|
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
|
|
|
Preventing Text Size Change
Ok, everyone knows how browsers can change text sizes, I want to know how to keep browsers from being able to do it. I know if you use exact css text sizes, IE wont resize it, but other browsers such as firebird still can. Can anyone help me?
|

12-07-2003, 05:47 PM
|
 |
Possible Terrorist
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,504
|
|
|
<img src="gd.php?text=blah&size=12">
|

12-07-2003, 06:13 PM
|
 |
Contributing Member
|
|
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
|
|
|
what?
|

12-07-2003, 06:24 PM
|
 |
Possible Terrorist
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,504
|
|
make the text an image
|

12-07-2003, 07:40 PM
|
 |
Contributing Member
|
|
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
|
|
|
I don't want it to be a image. Their has to be other ways.
|

12-07-2003, 08:13 PM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England.
Posts: 3,886
|
|
|
what if someone visually impaired views your web site? you're bound to lose trade if the customer can't read the site!
Anyway this code MAY do the job :
[code:1:3faac8466d]
<head>
<style type="text/css">
.myClass { <SCRIPT language="JavaScript"> <!-- var browserName=navigator.appName; if (browserName=="Netscape") { document.write("font-size: medium"); } else { document.write("font-size: small"); { //--> </SCRIPT> }
</style>
</head>
[/code:1:3faac8466d]
Edit the 'medium' and 'small' settings to suit....
Let me know if this works plz.
|

12-08-2003, 03:38 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 10-13-03
Location: UK
Posts: 2,468
|
|
|
medium refers to the user's preferred size, small x-small x-larg etc are relative to that.
Not sure if <script> is allowed in <style> (there's another way if u want me to show u).
all relative font's scale
the W3C standard is to let all text re-sizable even when set in point or pixels.
heights and widths will scale with the text if they are set in em units (or ex), these units require CSS, (as do x-small small medium large x-large).
images are the only sure way to fix size, but using images for text is total shyte.
IMO the best solutiopn is to design layouts that adapt to text size changes. The current standard technologies don't make it that easy though, and <table> based layouts often are miles ahead in functionality and usability for the programmer (untill it comes to alter/maintain the design).
|

12-08-2003, 06:01 AM
|
|
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Posts: 1,279
|
|
|
man i wanna know this too
|

12-08-2003, 08:25 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Posts: 1,962
|
|
|
humm.. interesting ...
|

12-08-2003, 10:03 AM
|
 |
Contributing Member
|
|
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
|
|
|
I have a design that is very restrictive of content, and when people resize text, it messes the design bad. Anymore ideas?
|

12-08-2003, 10:28 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England.
Posts: 3,886
|
|
|
so redesign the site to accomodate text changes...gotta think about the needs of the users.
|

12-08-2003, 10:46 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England
Posts: 1,757
|
|
|
This is easy just set it to a pixel size in the css. See all my sites I think for the example. I will give you the code if you need it.
|

12-08-2003, 10:47 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England
Posts: 1,757
|
|
|
What the hell
[code:1:d2308caaaa]
<style type="text/css">
<!--
.style1 {font-size: 11px}
-->
</style>
[/code:1:d2308caaaa]
|

12-08-2003, 10:48 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England
Posts: 1,757
|
|
|
So set the text as style 1 and that would set all the text as size 11
|

12-08-2003, 10:56 AM
|
|
No Longer Here
Latest Blog: None
|
|
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
|
|
|
Re: Preventing Text Size Change
Quote:
|
Originally Posted by ATLien
Ok, everyone knows how browsers can change text sizes, I want to know how to keep browsers from being able to do it. I know if you use exact css text sizes, IE wont resize it, but other browsers such as firebird still can. Can anyone help me?
|
|

12-08-2003, 10:58 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England.
Posts: 3,886
|
|
yeah well done for wasting 2 mins there cardesign
|

12-08-2003, 11:16 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England
Posts: 1,757
|
|
|
My Bad. Forgive me I am tired
|

12-08-2003, 11:19 AM
|
 |
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Location: England
Posts: 1,757
|
|
|
Reconsidering it though I don't think their is a way and you are just going to have to make sure (like DaveyBoy said) that you can accomodate for this.
|

12-08-2003, 03:49 PM
|
|
Senior Member
Latest Blog: None
|
|
Join Date: 10-13-03
Posts: 1,279
|
|
|
there is a way i went on site
|

12-08-2003, 04:13 PM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 10-13-03
Location: UK
Posts: 2,468
|
|
|
spit it out AcRo
lol cardesign don't forget 11px is very small and u are forcing many people to peer closer at your text and making it difficult to read. (but not me - ising FireBird I butcher your layouts and pring text up to around 15-20px!).
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:22 PM.
© Copyright 2010 V7 Inc Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.
|
|