Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font Size in Browser

Status
Not open for further replies.

mdr2271

Programmer
Sep 14, 2005
42
US
I use CSS to control menu and nav bar font sizes in my web pages and only recently has someone complained about strange line breaks and wrapping. I found out the problem was he was setting his font size in the browser to a size larger than medium. Is there a way in CSS to prevent font sizes from changing when someone changes font settings in the browser?
 
Not cross-browser, no. In IE, you can specify font-sizes in pixels, but this only works in IE.

You should design your website to be more flexible, IMHO.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Does anyone know the percentage of users that use a font size larger than medium?
 
At one stage, I thought an out-of-the-box Windows install had the font size set to large, but I can no longer be sure of this... might be worth testing a virgin Windows install to find out, however.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Don't forget that people may set their font sizes larger because they want their font sizes larger. You may find the font size you've chosen to be convenient and readable, but not everybody has eyesight as good as yours.

Being able to re-size text to your own taste is a key usability gain of the web over, say, a book. You shouldn't try to override it.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top