|
Posted by Adrienne Boswell on 03/06/06 02:05
Gazing into my crystal ball I observed Anton81 <forum@anton.e4ward.com>
writing in news:duf016$n0f$1@gwdu112.gwdg.de:
>>> is there a (linux) program which can display and print HTML file in a
>>> high quality format (tables,...)?
>>
>> Opera? Konqueror? Mozilla?
>
> As you might guess I'm not satisfied with the plain output that common
> browser produce when I want fancy output of important documents. Is
> there on option to add a nice "style" or convert it to prettier
> formats?
>
Sure, style them with CSS. Mind you, styling is only a suggestion and
the users printer may ignore it. For example, say you have a page with
navigation on the left and legalese on the bottom. You might want to not
print the navigation (after all, people can't follow hyperlinks on
paper), and you might want to add more to the legalese at print time.
So your CSS might be:
@media screen {
#legalese {
font-size:85%
}
#morelegalese {
display:none
}
}
@media print {
#legalese {
font-size:100%;
}
#morelegalese {
display:block;
font-weight:bold;
font-size:100%
}
#nav {
display:none
}
}
And your markup:
<div id="nav">
....
</div>
<div id="legalese">....</div>
<div id="morelegalese"><img src="mybigwarning.png" alt="This is a big
warning"></div>
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|