Using CSS to make page print in landscape

I have the following CSS code in my page:

<style>
	@media print {
		@page {
			size: 11in 17in landscape;
			margin: 1in 1in 1in 1in;
		}
		body * {
			visibility: hidden;
		}
		#content * {
			visibility: visible;
		}
		#content {
			position: absolute;
			left: 0;
			top: 0;
		}
	}
</style>

Syndicate content