[zeromq-dev] Printing web pages

Pieter Hintjens ph at imatix.com
Thu Oct 14 17:34:28 CEST 2010


Hi Gonzalo,

I've spent some time when you reported the problem previously, trying
to even reproduce it reliably, let alone fixing it.  It does hit but
not systematically.  IMO it's caused by an error in the CSS of the
generic template that affects different browsers differently, and is
also affected by caching.  I got the guys at Wikidot to take a look
but they could not reproduce it and so it left unsettled.

Here is the CSS in fact (from http://www.zeromq.org/include:template-a:

[[module CSS]]
.foldedtoc #toc #toc-action-bar {
    display: none
}
.foldedtoc #toc .title{
    display: none;
    border: 0px solid black;
}
.foldedtoc #toc {
    border: 0px solid black;
    margin: 0 0 0 -0,9em;
}
.foldedtoc .collapsible-block-link {
    text-decoration:none
}
.readme {
    background:none repeat scroll 0 0 #FFB0B0;
    border: 1px solid #FF0000;
    font-size: medium;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 1em;
    text-align:center;
}
[[/module]]

[[module css]]
@media screen {
    .main-text { width:65%; float:left; }
    .right-bar { width:30%; margin-left:4%; float:left; }
}
@media print {
    #side-bar  { visibility: hidden; }
    #main-content { margin-left: 0; }
    .main-text { width:100%; font-size:9pt; }
    .right-bar { visibility: hidden; }
}

Let's try to debug this by using git's bisect algorithm...

- I've removed the template from the sandbox: category
- So see if you can print http://www.zeromq.org/sandbox:ch1
- See if you can print: http://zguide.zeromq.org/chapter:1
- See if you can print: http://www.imatix.com/articles:the-ice-wars

-Pieter



More information about the zeromq-dev mailing list