[daisy] Printer output gets outside margins
COELMONT, Geert
Geert.COELMONT at headbird.com
Tue Jul 15 11:12:12 CEST 2008
Hi all,
I've noticed a problem with printer output: lines that should normally
wrap are truncated, when printing a page on IE. Firefox prints them
correctly.
This happens on IE6 and IE7, i don't have IE5 anymore. Print Preview
will also show the truncation.
Searching on the Internet I found this site
http://www.webcredible.co.uk/user-friendly-resources/css/internet-explor
er.shtml
This appears to be a problem in the way Internet Explorer interprets CSS
elements marging/padding/border/width.
Anyway to get around the problem (at least in IE6) I modified the
following file:
{install
dir}/daisywiki/webapp/daisy/resources/skins/default/css/daisy.css
#content
{
margin-left: 1em;
padding: 0em;
border-left: none;
}
changed into:
#content
{
margin-left: 1em;
padding: 0em;
border-left: none;
width: 64%;
}
html>body #content
{
width: 100%;
}
This makes the page narrower (64% instead of 100%) in IE6, because IE6
doesn't understand the html>body reference at the bottom, and thus
ignores the width: 100%
64% seemed to be the good value for me, it required some trial and error
to get there.
This did the trick for me, but I'm far from sure that this is the "good"
solution though.
Also it doesn't work for IE7. Does anyone have a better explanation
and/or solution?
Regards
Geert
**********************************************************************
All e-mail messages addressed to, received or sent by the Cobelfret Group or Cobelfret Group employees are deemed to be professional in nature. Accordingly, the sender or recipient of these messages agrees that they may be read by other Cobelfret Group employees than the official recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof.
This mail has been checked for viruses by Mailsweeper and Sophos
*********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20080715/003a0f1d/attachment.htm
More information about the daisy
mailing list