View Full Version : constant font sizes?
carlito
December 13th, 2003, 07:18
Could someone tell me the code (HTML) to make a text's size remain constant no matter how large fonts in a browser are configured to be? (As in (IE) VIEW> TEXT SIZE> large, largest, etc)
Loon
December 13th, 2003, 09:31
Define your font sizes in css as a pixel height rather than a point height, and they should remain constant.
eg:
body {
font-family : verdana, arial, sans-serif;
font-size : 8px;
}
carlito
December 14th, 2003, 06:13
Originally posted by Loon
Define your font sizes in css as a pixel height rather than a point height, and they should remain constant.
eg:
body {
font-family : verdana, arial, sans-serif;
font-size : 8px;
}
Thanks for ur help but I'm confused.
How do I place that code? Because I put it in my <style> tags and it didn't work...
this is how it is -
<style type="text/css">
a:link { text-decoration: none; color: #E5007C }
a:active { text-decoration: none; color: #E5007C }
a:visited { text-decoration: none; color: #E5007C }
a:hover {text-decoration:underline;color: #E5007C }
</style>
Where do I put your code? Your spacing is weird .. Im really confused now lol:confused5
carlito
December 14th, 2003, 06:16
Oh btw how did u do those dotty table borders in your site (http://netcode.net/) ? I can't find the HTML hehe :P
thanx
bright-byte
December 14th, 2003, 21:58
:-) Hi carlito,
It should look something like this:
<style type="text/css">
body {
font-family : verdana, arial, sans-serif;
font-size : 8px;
}
a:link { text-decoration: none; color: #E5007C }
a:active { text-decoration: none; color: #E5007C }
a:visited { text-decoration: none; color: #E5007C }
a:hover {text-decoration:underline;color: #E5007C }
</style>
bloodyveins
December 15th, 2003, 04:48
Originally posted by Loon
Define your font sizes in css as a pixel height rather than a point height, and they should remain constant.
I'm not sure about that. Since pixel size is determined by resolution of the monitor, its height is relative, not absolute. (try to adjust your monitor resolution to 800x600, 1024x768, etc on the same monitor, you'll find the font size adjusted).
Constant size is obtained from pt (point). Since 1pt = 1/72 inch, you'll get the same font size regardless of your monitor resolution.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.