Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Using CSS to prevent text resizing
Old 10-18-2005, 02:38 PM Using CSS to prevent text resizing
Skilled Talker

Posts: 76
Trades: 0
I noticed that my site looks crappy when you resize the text in IE. I want to prevent people from doing it. It strikes me that CSS may just be the answer. How do I make it so that people can't resize the text?

Thanks for the help
SirKenin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-18-2005, 02:52 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
As far as I know this is not possible.

I wouldn't recommend doing it anyway. Browsers provide the text size control so that people with impaired vision (or just stupidly high resolution monitors ) can actually read the text on your site. Virtually any website's layout will break if you enlarge the text enough. The exception to this is the Opera browser which magnifies the whole page including images etc.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 10-18-2005, 03:12 PM
Skilled Talker

Posts: 76
Trades: 0
I found a way to do it. You use

Code:
<span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">text</span>
After reading your post, however, I'm not sure I want to do it anymore...
SirKenin is offline
Reply With Quote
View Public Profile
 
Old 10-18-2005, 03:23 PM
webfreak's Avatar
Extreme Talker

Posts: 236
Location: USA
Trades: 0
Here's how to do it using CSS:

Code:
p {font-family: arial, sans-serif; font-size: 10px; }
webfreak is offline
Reply With Quote
View Public Profile Visit webfreak's homepage!
 
Old 10-18-2005, 04:08 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Oh yeah... /me slaps forehead, you can just do it with pixel sizes.... duh....
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 10-18-2005, 05:19 PM
monkey's Avatar
Ultra Talker

Posts: 487
Trades: 0
i try not force people to use one size. typically when designing a layout ill increase the font size twice to so what happens to layout. although with certain sites of mine i know they aren't there for the reading so on those i really dont even bother with that. i figure people who increase the font size to really large sizes have probably learned already that it can break layouts.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
monkey is offline
Reply With Quote
View Public Profile Visit monkey's homepage!
 
Old 07-12-2007, 09:49 AM Re: Using CSS to prevent text resizing
MusicManJP6's Avatar
Average Talker

Posts: 15
Name: Adam
Location: East TN
Trades: 0
So, it is not advised to disable text size changes? In most layouts, changing the size totally screws up the layout. I think the target audience can be taken into consideration, and the text size can be restricted depending on what type of users are most likely to visit the site.

Last edited by MusicManJP6; 07-12-2007 at 09:52 AM..
MusicManJP6 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2007, 10:34 AM Re: Using CSS to prevent text resizing
Experienced Talker

Posts: 35
Name: Chris
Trades: 0
You can't stop people resizing text in Firefox. Is it only IE you're worried about?
derjavina is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using CSS to prevent text resizing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.57628 seconds with 12 queries