stepping into HTML Purist Monk Mode
Please Please Please consider any and all alternatives before you start playing around with this... People have set their browser size and fonts to match what they prefer; for some, this might mean they are at 1024x768, with 6 pt fonts and 100 lines on the screen, for others, this is 640x480 with 24pt fonts and only 10 lines on the screen. This is usually done for readability purposes on their part. What you are suggesting that you'd be doing is forcing the font size to be a certain size so that you can specify exactly how many lines should be visible. This will annoy the former user above, and will be impossible to read by the latter one. It is usually a bad thing to play with the BODY font properties anyway since this is 99% of the test on a web site, and that is what a person will have set their fonts to read by.

In addition, the FONT tag is depriciated. Since you are using CSS, you should be setting styles and using SPAN and DIV to set the font styles for given areas. And it is best to stick to the relative font sizes in CSS (big, bigger, small, smaller) than to even use percentages much less pixel sizes.

HTML purist rant off


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

In reply to Re: Get info from browser known only to JavaScript? by Masem
in thread Get info from browser known only to JavaScript? by aplonis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.