Skip to content

Instantly share code, notes, and snippets.

@logicaroma
Created April 13, 2011 15:00
Show Gist options
  • Save logicaroma/917683 to your computer and use it in GitHub Desktop.
Save logicaroma/917683 to your computer and use it in GitHub Desktop.
Stylesheet Template for printing a page import using: <link rel="stylesheet" href="print.css" type="text/css" media="print" />
/*
*
* R.Mohammadi
* 13-04-2011
import using: <link rel="stylesheet" href="print.css" type="text/css" media="print" />
*/
/* Remove unwanted elements */
#header, #nav, .noprint
{
display: none;
}
/* Ensure the content spans the full width */
#container, #container2, #content
{
width: 100%; margin: 0; float: none;
}
/* Change text colour to black (useful for light text on a dark background) */
.lighttext
{
color: #000
}
/* Improve colour contrast of links */
a:link, a:visited
{
color: #781351
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment