hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Restricting font size
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Restricting font size

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-07-2003, 11:25 AM
landphil landphil is offline
Junior Guru Wannabe
 
Join Date: Sep 2003
Posts: 36
Question

Restricting font size


In most browsers you can adjust the size of the html fonts up or down, which can really screw up a layout. I have seen sites where this does not happen (i.e. you go to View/TextSize/Largest and the text does NOT change sizes), does anyone no how to control that? (other than making the text an image, that much I know)

Reply With Quote


Sponsored Links
  #2  
Old 10-07-2003, 11:32 AM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
Set the size of the font with CSS and they will not change when a user goes to view/text size/whatever.

Example:

<style type="text/css">
td {FONT-SIZE: 10pt}
</sytle>

This will make any text inside a <td> tag 10 point text no matter what the user picks on the browser. Let me know if you're not familiar with CSS and I can give you more instruction on that.

Reply With Quote
  #3  
Old 10-07-2003, 11:35 AM
landphil landphil is offline
Junior Guru Wannabe
 
Join Date: Sep 2003
Posts: 36
I have done a bit of CSS for scroll bars and hovers and stuff. I will try this, I was pretty sure it was CSS but now you have confirmed it, thanks so much.........

Reply With Quote
Sponsored Links
  #4  
Old 10-07-2003, 11:51 AM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
No problem...

Also here are some good tutorials on stylesheets (CSS)

Reply With Quote
  #5  
Old 10-08-2003, 02:41 AM
AdidasROXX AdidasROXX is offline
Junior Guru Wannabe
 
Join Date: Sep 2001
Posts: 48

Reply With Quote
  #6  
Old 10-08-2003, 08:29 AM
Alex042 Alex042 is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: MO, USA
Posts: 1,104
Quote:
FONT-SIZE: 10pt
or 10px for pixels

Reply With Quote
  #7  
Old 10-08-2003, 12:49 PM
bedlam bedlam is offline
WHT Addict
 
Join Date: Apr 2003
Posts: 126
Quote:
Originally posted by jjmac78
Set the size of the font with CSS and they will not change when a user goes to view/text size/whatever.

Example:

<style type="text/css">
td {FONT-SIZE: 10pt}
</sytle>

This will make any text inside a <td> tag 10 point text no matter what the user picks on the browser. Let me know if you're not familiar with CSS and I can give you more instruction on that.
...but only in Internet Explorer. Other browsers allow text to be resized no matter what you specify (this is true regardless of whether you use pixels or points). It tends to work better if you avoid layouts that will break if the font size changes.

B

Reply With Quote
  #8  
Old 10-08-2003, 01:10 PM
Alex042 Alex042 is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: MO, USA
Posts: 1,104
Quote:
Other browsers allow text to be resized no matter what you specify
Maybe because of accessibility reasons. Afterall, some people may have a problem reading small fonts and may have their font sizes set higher so they dont have to worry about this.

Reply With Quote
  #9  
Old 10-08-2003, 01:17 PM
bedlam bedlam is offline
WHT Addict
 
Join Date: Apr 2003
Posts: 126
Yep, that's precisely the reason.

As I say, the most fail-safe strategy is to design layouts that don't break when the font size changes.



B

Reply With Quote
  #10  
Old 10-08-2003, 03:51 PM
jjmac78 jjmac78 is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Location: Arkansas
Posts: 66
I agree with bedlam...

But since I read in a microsoft article that only 5% of all browsers are netscape now, (after AOL laid off its mozilla team and switched browsers) i just said forget it -- i'm just coding for IE

So I didnt even test netscape when I posted my answer... My apologies..

And in my opinion people should be able to control the font size for the aforementioned reasons.

Reply With Quote
  #11  
Old 10-08-2003, 04:05 PM
bedlam bedlam is offline
WHT Addict
 
Join Date: Apr 2003
Posts: 126
Quote:
Originally posted by jjmac78
But since I read in a microsoft article that only 5% of all browsers are netscape now, (after AOL laid off its mozilla team and switched browsers) i just said forget it -- i'm just coding for IE
I'm a little , but you may want to rethink that:

Not only has MS discontinued development for Mac IE (see story here) , it has also discontinued development of IE for Windows as a standalone product (see story here).

Obviously whatever is integrated into Longhorn (or whatever it's called when it's released) will incorporate technology from IE 6 and people will continue to use older browsers, but If you have to upgrade your whole OS to get the features of the new browser in Longhorn, a lot of people are bound to simply switch browsers instead...

B

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Strategies to Reduce Operating Costs, Avoid Email Blacklisting and Improve Deliverability Webinars 2013-05-15 11:27:46
WHD.india 2013 Web Hosting Events 2013-04-24 18:18:58
What the new version of Google Analytics brings to your business Blog 2011-12-20 15:56:29
Huge fun in Houston at Hughes Hangar Blog 2011-11-11 16:17:03
Data, Data Everywhere! Blog 2011-08-16 15:05:45


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?