NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page text sizing

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
523 unique views    
LinkBack Thread Tools
Old 06-21-2003, 04:08 PM THREAD STARTER               #1 (permalink)
SAMSON
Guest
Posts: n/a
 



text sizing


Im making a site and design looks food... But if anyone will change text parameters in his browser (increase size, etc) then the whole design will be deformed...

Is there any java code or simply an html command that will forbid changing size of the text?
Im a beginner in web making so I will really appresiate your help.

Regards.
 
Old 06-21-2003, 04:38 PM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



You can do that with CSS



If you add something like this to the head section of your page, then all the text in the body section of your page will be sized to 10px and when someone tries to increase their font size it shouldn't change, or atleast I don't think so.

<style type="text/css">
body {
font-size: 10px;
}
</style>

It can get alot more complex than that though, but it's really not to hard to learn.

Here's how my example would look:
????: NamePros.com http://www.namepros.com/programming/14879-text-sizing.html

<html>
<head>
<style type="text/css">
body {
font-size: 10px;
}
</style>
</head>
<body>
Your content here
</body>
</html>

You can give it a try and experiment with it and see if it works. :webdev:
deadserious is offline  
Old 06-22-2003, 05:21 AM THREAD STARTER               #3 (permalink)
SAMSON
Guest
Posts: n/a
 




it didnt work. but thx anyways. i'll have to look more...
 
Old 06-22-2003, 06:00 AM   #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
imo if the text size changes make the site look wrong i think thats thats bad web design what if someone with bad eyesight visits your site and they can only use this small font?
adam_uk is offline  
Old 06-22-2003, 06:36 AM THREAD STARTER               #5 (permalink)
SAMSON
Guest
Posts: n/a
 



YES, it works now... but i had to use dreamweaver to make it work...
 
Old 07-08-2003, 07:48 PM   #6 (permalink)
New Member
Join Date: Jul 2003
Posts: 13
Xxzibit is an unknown quantity at this point
 



Re: text sizing


Quote:
Originally posted by SAMSON
????: NamePros.com http://www.namepros.com/showthread.php?t=14879
design looks food...

Mmmm.... Food design... 2 of my favourite things
__________________
-Posted by Xxzibit of RDB Designs

http://www.rdbdesigns.com/
Xxzibit is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:01 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger