I am trying to create printer friendly pages for my website. Unfortunately the css file doesn't work at all when i select print to preview the page.
These are the html links that I am using;
<link rel=”stylesheet” type=”text/css” href=”http://what-do-christians-believe.co.uk/test/print.css” media=”print” />
<link rel=”stylesheet” type=”text/css” href=”http://what-do-christians-believe.co.uk/test/print.css” media=”screen” />
This is the code for my print.css file
body {
background-color:#FFFFFF;
color : #000000;
}
#guide{display:none;}
#guidelinks{display:none;}
h1{display: none;}
h2{ text-align: center;
font-family: arial;
font-size: 1.30em;
color: black;
}
h3 {text-align: center;
font-family: arial;
font-size: 1.17em;
color: black;
}
#title{text-align: center;
font-family: arial;
font-size: 1.17em;
color: black;}
#container {display: none;}
#container-2 {display: none;}
#mobile-photos {display: none;}
#main-back {display: none}
#main-box {display: none;}
#texted-1 {
background-color:#fff;
font-family: arial, sans-serif;
font-size: 1.25em;
color: black;
}
#linkd {display: none;}
#foot-menu {display: none}
#drop-down {display: none;}
All I am wanting to print is the H2 heading in #title and texted-1
When I right click to print the whole url is shown in the preview.
The attached screen print shows the print preview as it is. What i want to see is the sub heading in black (not blue) and the text in the large text box below the image starting this site will ...
What do I need to do to get the print preview to show just the text that is highlighted in this screen print? [ATTACH]15671[/ATTACH]
The attachments of this post were removed during the platform migration in 2018