CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2001, 07:55 AM
JensK JensK is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Germany (West)
Posts: 1 JensK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

I've got several layers in "boxes" with text in it, that means that the text MUST fit into these boxes.

I've found out that you can set the font-size with Cascading
Style Sheets that it can't be changed by the browser
(In IE you can choose if you want bigger or smaller font
size).

But now a tester told me that if you choose bigger fonts
in MS Windows (display properties, where you set up your
graphics adapter) the font-size in CSS is BIGGER while
"normal" HTML is not changing in size.

Is there a possibility to find out if a user got bigger
fonts activated or is there another "trick" so that the
font size is (mostly) ALWAYS the same (while not using
images) ?




Reply With Quote
  #2  
Old February 1st, 2001, 09:42 PM
colin_anderson colin_anderson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 41 colin_anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
The most effective way that I'm aware of is specifying the fonts in pixels -- which will pretty much display universally one way. For example, if you want "Hello and welcome to my site" to be displayed in the same size, use something like <span style="font-size : 11px">Hello and welcome to my site</span>. That should fix the problem.

Happy coding!
__________________
-Colin Anderson
--------------------------------
HTML etc.; http://www.htmletc.net/
--------------------------------
"There are two ways to write error-free coding; only the third one works."

Reply With Quote
  #3  
Old February 2nd, 2001, 12:11 PM
id_machine id_machine is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Salt Lake City, Utah
Posts: 48 id_machine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
JensK,

Colin's right, that will force the browser to render the text in the size that you want. just be careful not to put the px size too small, we've had problems with text not being legible under about 10px (in netscape--in IE it was fine at 10px) in arial. this may have been a specific situation, but better safe than sorry...in the end, just check and recheck to see what's acceptable. ;)

jason ;)
http://www.theartofsynapse.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Font size in CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap