« ftp.gnu.org compromised   |   Main index   |  De Omloop; The yearly island walk »

Have you tried to print this page?

August 18, 2003 | Comments (0)

From now this site supports a printer friendly style sheet. This leaves off all unimportant stuff from your paper when printing this page. In a css2 supporting browser it even shows you the link location of all entries in the blogs.

The following tweaks are implemented to get the desired effect:

  • The navigational parts are hidden using #selector { display:none; }.
  • The base fonts are defined in points instead of pixels using font-size: 12pt.
  • And a css2 style is defined to generate additional content:
    .log-main a:link:after, .log-main a:visited:after {
    content: " (" attr(href) ") ";
    font-size: 90%;
    }


Currently Internet Explorer 6 does not support css2 and you won’t find the link locations. In Gecko based browsers like Mozilla and Netscape it will work. However if changing the font-size for these smart link is set to 70% or 9pt in our example of the default 12pt, the calculation of the total text is wrong and a parts of the link location is rendered through the next text.

Comments

Post a comment

Use the form below to add your relevant comments, suggestions. Be aware that I reserve the right to edit any raw language, abusive and/or inappropriate comments that's too far off topic or remove it all together.






Line breaks and paragraphs are inserted by default; the following html tags are allowed: a href, b, br/, p, strong, em, ul, li, and blockquote. It is Gravatar enabled!