Sizing fonts in browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sujith

    Sizing fonts in browser

    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,Moz illa etc....

    <html>
    <head>
    <style type='text/html'>
    ..FontType {font-family:arial; font-size:8px; color:red}
    </style>
    ..
    ..
    ..
    <body bgcolor='#bccfe 3'>
    <table cellpadding='0' class='FontType '>
    ..
    ..
    ..
    </html>
  • Philipp Lenssen

    #2
    Re: Sizing fonts in browser

    In article <a745581e.03082 50155.4d29187b@ posting.google. com>, sujithb_
    812@hotmail.com says...[color=blue]
    > 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,Moz illa etc....
    >
    > <html>[/color]

    It helps if you include a doctype and validate.
    [color=blue]
    > <head>
    > <style type='text/html'>[/color]

    Try <style type="text/css">

    [color=blue]
    > .FontType {font-family:arial; font-size:8px; color:red}[/color]

    FontType is a bad class-name; try to choose structural/ content-related
    class-names to make best use of CSS.

    Comment

    • Jukka K. Korpela

      #3
      Re: Sizing fonts in browser

      sujithb_812@hot mail.com (sujith) wrote:
      [color=blue]
      > It will be great if any one helps me in sizing fonts in browser!!![/color]

      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.)
      [color=blue]
      > I tried this code it worked in Konqueror but not in Mozilla[/color]

      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?
      [color=blue]
      > I need a solution that will work in IE,Netscape,Moz illa etc....[/color]

      No you don't. You need to start learning HTML authoring for the World
      Wide Web.
      [color=blue]
      > <style type='text/html'>
      > .FontType {font-family:arial; font-size:8px; color:red}
      > </style>[/color]

      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:


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

      Comment

      Working...