Vistors printing pages

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



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Aug 13th, 2006, 10:32
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Vistors printing pages

I have a problem with my website

http://www.miniaturerailwayworld.co.uk/

People can view it OK, but if they try to print something off only half the page is printed. What can I do with this template to make it printable in the same format?

Many Thanks
Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 13th, 2006, 12:18
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,158
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Re: Vistors printing pages

Essentially, all you need to do is use a print style sheet....

Build you site in such a way that the WIDTH of the page is controlled via CSS....

In the print style sheet, just set the overall width to around 600px and it'll print fine.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 13th, 2006, 14:55
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

Well I changed the Width on the CSS page to 600 and nothing seems to have changed. I don't know about the print style sheet though where that is.

Many Thanks for your help Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 13th, 2006, 16:42
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,158
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Re: Vistors printing pages

The problem you have is that your design is not liquid....

What I am looking at is around 900px in total, and far from being 600px.

Anyway, it's not the visible width you need to change... it's the width ONLY WHEN PRINTING..... this is done using a print style sheet:-

ie:-
Code: Select all
<link rel="stylesheet"
   type="text/css"
   media="print" href="print.css" />
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 13th, 2006, 16:43
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

OK, so would I put your spreadsheet within the HTML body of the document? Sorry I'm abit confused and not very good at this stuff.

Last edited by pepe_starr; Aug 13th, 2006 at 16:45.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 13th, 2006, 17:23
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,158
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Re: Vistors printing pages

First off, it's a stylesheet.... i definitly wouldn't going linking to a print spreadsheet as you will have all sorts of headache's...

You need to link to the print stylesheet from the HEAD section of your page.

Your OVERALL page width should be controlled already with CSS (if it isnt, then back to the drawing board for you)

I havent looked, but I suspect you are controlling page width using the width attribute of table cells.... if this is the case, then you need to externalise those width metrics into a CSS file.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 14th, 2006, 10:30
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

Thanks Rob I will look into that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 14th, 2006, 12:42
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Vistors printing pages

http://www.newbeginningsdesign.com/samples/print/

This example should get you started, I never really finished it due to various reasons but the main idea/function is there.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 14th, 2006, 17:16
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

OK, Thank you I will look at it and see if I can figure it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 14th, 2006, 17:36
Up'n'Coming Member
Join Date: Jun 2006
Location: Rochester, NY
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

another alternative would be to have a php script that took the page and made a printable version (like when you see printer friendly version option)
generally thats a script that shows the same page but with nothing except text.

if your website doesnt use php/mysql then you could just make a printable version of the site, meaning its the same site but just the text.
__________________
www.MonsterCoding.com - Website Programming and Development Services
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Aug 14th, 2006, 17:43
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Vistors printing pages

A print style sheet can/should work regardless of your layout assuming your site is laid out with semantic XHTML Strict/CSS for example. Here is a print style sheet I used for a site project I did that strips out everything but the actual content.

Code: Select all
body {
	font-family: Times;
	font-size: 12px;
	color: #000;
}

#calendar, #sidebar, #nav, #navmenu, #menubar, #menubar li a, form, fieldset, legend, #footer, .view, .email, .directions, .directorylist, #sidebar, #sidebar li a {
	display: none;
	visibility: hidden;
}

a:link, a:visited, a:hover {
	color: #000;
	text-decoration: underline;
}

.memview {
	border:0;
	padding: 0;
}
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 15th, 2006, 16:43
Junior Member
Join Date: Jan 2006
Location: Yorkshire, UK
Age: 17
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

I have tried my hardest getting this print style sheet to work and appreciate all the help, but it still dosen't work. Could anyone volunteer to have a look for me and help me put one in? If so please contact me by PM. I would be so grateful as my visitors at my site are complaning at this.

Many Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Sep 17th, 2006, 12:24
New Member
Join Date: Sep 2006
Location: uk
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Vistors printing pages

Code: Select all
<link rel="stylesheet" href="Pictures/emx_nav_left.css" type="text/css" />
Under this line in your code put

Code: Select all
<link rel="stylesheet"
   type="text/css"
   media="print" href="print.css" />
Then create a stylesheet for your website called print.css that will make the page look
how you want it to when you print it.

It's really very easy, I see you've created a style sheet before, just create another one without any colours
and make the page width smaller.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
vistors, printing, pages

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
Javascript - Updating web pages with snippets from other pages Ydot JavaScript Forum 3 Jul 10th, 2007 14:38
printing multiple pages benbacardi PHP Forum 8 Aug 8th, 2006 13:08
Printing bigdavemmu Web Page Design 1 Sep 22nd, 2005 19:23
Printing HTML Tables between two pages with Windows NT 4.00 gecastill Web Page Design 4 Jul 11th, 2005 13:31
Scripting Needed(adding pages to pages) Amari Classic ASP 1 Sep 4th, 2004 18:06


All times are GMT. The time now is 11:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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