By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

Sizing fonts in browser

P: n/a
It will be great if any one helps me in sizing fonts in browser!!!

I tried this code it worked in Konqueror but not in Mozilla

I need a solution that will work in IE,Netscape,Mozilla etc....

<html>
<head>
<style type='text/html'>
..FontType {font-family:arial; font-size:8px; color:red}
</style>
..
..
..
<body bgcolor='#bccfe3'>
<table cellpadding='0' class='FontType'>
..
..
..
</html>
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <a7**************************@posting.google.com >, sujithb_
81*@hotmail.com says...
It will be great if any one helps me in sizing fonts in browser!!!

I tried this code it worked in Konqueror but not in Mozilla

I need a solution that will work in IE,Netscape,Mozilla etc....

<html>
It helps if you include a doctype and validate.
<head>
<style type='text/html'>
Try <style type="text/css">
http://www.w3.org/TR/html401/present...tml#edef-STYLE
.FontType {font-family:arial; font-size:8px; color:red}


FontType is a bad class-name; try to choose structural/ content-related
class-names to make best use of CSS.
Jul 20 '05 #2

P: n/a
su*********@hotmail.com (sujith) wrote:
It will be great if any one helps me in sizing fonts in browser!!!
Ok, the _best_ advice is: don't.
(In due time, you will learn how to do some relative sizing in
a useful way. But the fact that you asked the way you did
indicates that you're not ready for such advanced issues yet.)
I tried this code it worked in Konqueror but not in Mozilla
Maybe you used a browser version that has some default protection
against the most clueless settings on pages, like trying to make
font size idiotically small. What should a browser do with
font-size: 1px?
I need a solution that will work in IE,Netscape,Mozilla etc....
No you don't. You need to start learning HTML authoring for the World
Wide Web.
<style type='text/html'>
.FontType {font-family:arial; font-size:8px; color:red}
</style>


You _really_ don't know the difference between HTML and CSS, do you?

Your attempted technique is CSS, hence off-topic here, and you're using
it all wrong, hence you should do some homework. Here's one suggestion:
http://www.mcsr.olemiss.edu/~mudws/webhints.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.