/*
   New Perspectives on HTML and CSS
   Tutorial 8
   Case Problem 1

   dessertWeb Print Styles
   Author: Claudia Lindsay
   Date:   10/15/2015

   Filename:         dwprint.css
   Supporting Files: 

*/
/* Print */
@page {
	size: 8.5in 11in;
	margin: 0.5in;
}

/* Hide page elements that will not be printed */
header, section#left, section#right, nav, aside, footer, hgroup>h2, section#center>article>p:last-of-type {
	display: none;
}

/* Styles for the h1 heading */
h1 {
	font-size: 200%;
	margin-bottom: 0.2in;
}

/* Styles for the h2 heading */
h2 {
	font-size: 150%;
	margin-top: 0.5in;
}

/* Set line height for all list items */
ul>li, ol>li {
	line-height: 1.5em;
}

/* Set left margin for all ordered lists */
ol {
	margin-left: 0.5in;
}

/* Setting the page breaks always occur b4 the last h2 element in the page */
h2:last-of-type {
	page-break-before: always;
}