Printing

This is a discussion on "Printing" within the Web Page Design section. This forum, and the thread "Printing are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 22nd, 2005, 15:50
New Member
Join Date: Sep 2005
Location: somewhere
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Printing

To be honest I am new to using CSS for printing and I want to use CSS to print my pages; dilemma!

I have successfully used CSS to eliminate elements and add a small underline, set font, link colours etc... But no matter what I do I can't seem to get the thing to print everything off within my margins. I've been messing with this for ages and can't get the hang of it.

Can you please help...

Here's the CSS:
Code: Select all
div#content { 
	page: tablecontents;
	border-width: 0;
	border-bottom-width: thin;
	border-style: groove;
	}
	
@ page: tablecontents {
	size: 8in 11in;
	}


.printheader_small { 
	color: #000;
	font-size: 8px;
	font-family: Verdana, Arial, serif;
	font-style: italic;
	}

.printheader {
	color: #000;
	font-size: 12px;
	font-family: Verdana, Arial, serif;
	font-style: italic;
	font-weight: bold ;
	}
	
.no_print {
	display: none;
	}
	
body {
	background: white;
	}

	
td { font-family: Garamond, "Times New Roman", Times, serif;
	color: black; 
	}	
	
a:link {
	text-decoration: none;
	color: Green;
	font:Verdana;
	}
	
a:visited {text-decoration: none;
	color: Green;
	font:Verdana;
	}
	
a:hover {
	text-decoration: none;
	color: Green;
	font:Verdana;
	}
Do you need the HTML code?? The page can be found at www.candoslimming.com. I am using tables for the site. Does this affect it?

ANY help whatsoever would be brilliant.

Thanks people!
Reply With Quote

  #2 (permalink)  
Old Sep 22nd, 2005, 19:23
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
When using CSS for both screen and print modes, define your style sheet as follows:
Code: Select all
@media screen,print {
 ...all your normal styles here...
}
@media print {
   body { width: 100% }
  ..any other styles required to remove elements, images or styling from the printed page...
}
This re-definition of the body size will 'slim' the document down to fit the size of the paper you are printing to.
Reply With Quote
Reply

Tags
printing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Jack Franklin Webforumz Cafe 5 Jun 13th, 2008 12:04
selective printing brunette Web Page Design 9 Aug 23rd, 2006 19:17
Printing Frames in IE osmenthe JavaScript Forum 1 Jun 12th, 2006 21:31
Printing Problem saud PHP Forum 3 Jul 25th, 2005 16:37
printing spinal007 Web Page Design 2 Nov 17th, 2004 13:37


All times are GMT. The time now is 19:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43