Re: website facelift

From: John T. Haller <abiword_at_johnhaller.com>
Date: Mon Jan 09 2006 - 18:02:56 CET

Kiddo wrote:

> Lastly, John : well the page currently has a printer friendly mode,
> did you check it out? Is there something missing from it? It can be
> accessed through the menu anytime.
>
> http://open-source.nanokron.info/projets/abiword/new-website/?printable=yes
> I'm not sure what your css code (although I am open to integrate it if
> it's better) does different?

Jeff,

Through the wonders of CSS, EVERY page can become printer friendly. You
simply tell the browser what to alter and hide when the page is printed.
    So, there's not neeed to have a printer friendly mode or a different
URL. It just works.

Check out this page again:
http://johnhaller.com/jh/development/

There is a last section in CSS tha reads:

/*printer styles*/
@media print{
body {margin: 0; padding: 0;}
.navigation, .locator, .footer a, .message, .footer-links {display:none;}
.footer, .content, .header {border: none;}
a {text-decoration: none; font-weight: normal; color: black;}
}

What this does is tell the browser to hide the navigation, locator bar,
footer links, etc and alter the margins and colors on a couple other
things when printed. So, every page on the site is automatically
printer friendly. Do a print preview of that page above to see what I
mean. No need to click a printer friendly button or navigate to another
page. You just print.

Regards,
John
Received on Mon Jan 9 18:06:22 2006

This archive was generated by hypermail 2.1.8 : Mon Jan 09 2006 - 18:06:22 CET