*David J Patrick* <da***********@sympatico.ca>:
I'm developing a script to transform that markup to html, with css, that
will conform to established "Hollywood" formatting conventions.
So far, the screen output is looking OK, but I'm a bit stumped when it
comes to page break logic. the css for Printout is even more problematic.
.header {page-break-before: always}
or probably better:
.main {page-break-after: always}
http://s92415866.onlinehome.us/files...playCSSv2.html
You're invalidly using multiple IDs instead of classes and should probably
abbreviate them. I don't understand the 'br' after the page number headers
(use a margin).
<div id="action">Trens (...)<p>Sumbloat (...)</p></div>
may be valid (except the mentioned multiple 'id'), but
<div class="action"><p>Trens (...)</p><p>Sumbloat (...)</p></div>
or
<p class="action">Trens (...)</p><p class="action">Sumbloat (...)</p>
is better style.
As you're trying to rebuild a design, which has very rigid rules, in CSS you
should keep as close as possible to the source's values, i.e. use points
('pt') and inches ('in'), not pixels ('px'). Furthermore this strict
resemblance is IMO only required for media="print"; for "screen" you should
use a readable stylesheet.
Instead of
font: 12pt "Courier 10 Pitch BT", "Courier New"; line-height: 1;
use e.g.
font: 12pt/1 "Courier 10 Pitch BT", "Courier New", Courier, monospace;
This:
letter-spacing: -1pt;
doesn't look like a good idea to me.
--
The Hitchhiker's Guide to the Galaxy:
"He was a dreamer, a thinker, a speculative philosopher,
or, as his wife would have it, an idiot."