As many people have already pointed out, the 'actual' size of a page depends on the browser, the user's browser preferences, the user's display resolution, the system installed fonts, the display preferences, the user's OS platform, the font aliasing preferences, and the user's browser window size. Occasionally it depends on the phase of the moon, but only at high tide or when pluto is in the House of Aquarius.

HTML doesn't define presentation at all, and HTML with CSS makes really strong suggestions about presentation, but still doesn't define it exactly. (Assuming any browser actually completely and accurately implements the CSS specs, which none do. (Not even counting the spots in the CSS specification that aren't exact enough to definitively render))

The best you're going to be able to do is make a 90% guess. Using an existing rendering engine would be the way to do this, but if you're going to use the result to influence the design as presented to other people, you're probably better off using the IE/Windows HTML rendering engine, as it disagrees with Mozilla on quite a few things and, like it or not, is significantly more used. (And no, I have no idea how you'd do this)


In reply to Re: Seeking ideas for measuring rendered html size by Elian
in thread Seeking ideas for measuring rendered html size by BUU

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.