Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Web publishing business discussion > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-24-2001, 06:44 AM   #1
harry
Registered User
 
harry's Avatar
 
Join Date: Dec 2000
Location: Copenhagen, Denmark
Posts: 126
Default Page break HTML code

Hi Folks

I need help on this one.

When printing web pages, I wish to insert an HTML code to avoid getting one long page print.
I.e I wish to insert tags at the end of "sections" of the page so that each section will be printed on one page.

Many thanks in advance.


Harith
http://www.danex-exm.dk
harry is offline   Reply With Quote
Old 09-04-2001, 04:36 PM   #2
wienerdog
Registered User
 
Join Date: Aug 2001
Location: HB CA
Posts: 8
Default

Your question is a little confusing.

You don't need page breaks IN the html. Most every browser automatically breaks the page up before it sends it to the printer (you can even use the 'print preview' in IE). Trying to control the output of a printer UNIVERSALLY would be a lost cause. There are so many different set-ups (users own font preferences, etc.) that any manual page break you inserted would be nigh-useless.

If you're really concerned about printer format, consider offering a PDF version for your users to download - then you can control EVERYTHING even the fonts.

Of course, I may have misunderstood your question all together.

wd
wienerdog is offline   Reply With Quote
Old 09-04-2001, 04:55 PM   #3
harry
Registered User
 
harry's Avatar
 
Join Date: Dec 2000
Location: Copenhagen, Denmark
Posts: 126
Default

wienerdog

Thanks for feedback. Much appreciated.

My problem is when printing long articles in html format, Sometimes paragraphs at end of the printed pages are cut randomly and then the rest continue on the next printed page.

I wish I could keep paragraphs without being cut, and maybe get the whole paragraph moved to the next printed page.

All the best,


Harith
harry is offline   Reply With Quote
Old 10-14-2001, 11:03 AM   #4
AK
Registered User
 
AK's Avatar
 
Join Date: Jan 2000
Location: Lkpg, SE
Posts: 562
Default

You can use CSS to insert page breaks for printers in your code. The best way is probably to set up the class within a <P> or <BR> tag.

You could for example put this between your head tags:

<STYLE TYPE="text/css">
P.breakhere {page-break-before: always**
</STYLE>

and then put <P CLASS="breakhere"> in your code where you want the page break to be (P could easlily be substituted for BR).

I've never used this myself, but I'm sure you could find a tutorial on the web that explains CSS page breaks in detail.
AK is offline   Reply With Quote
Old 10-16-2001, 02:46 AM   #5
woutah
Registered User
 
Join Date: Aug 1999
Posts: 40
Default

You can also use the css media types to specify a design for the printed pages.

More info:
http://www.w3schools.com/css/css_mediatypes.asp
http://www.w3schools.com/css/css_ref_print.asp
woutah is offline   Reply With Quote
Old 10-22-2001, 11:53 PM   #6
CelicaFan
Member.
 
Join Date: Oct 2001
Posts: 64
Default

Personally, I would suggest making the news available for download or print as a PDF file. Then, the visitor can print how you want it to look.
CelicaFan is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I make my download.cgi pages into html pages? nima Web Development - Programming / Coding 3 10-31-2001 10:36 PM
how do I make my download.cgi pages into html pages? nima Web Design and Webmaster Issues 2 10-31-2001 12:42 AM
Somebody stole my HTML WildComputer Making Money with CPC and/or CPM Programs 8 11-12-1999 10:04 PM
Value Click Code..Any Ideas? headhunter Making Money with CPC and/or CPM Programs 0 08-05-1999 08:31 PM
HTML editors .. A different spin ... $$$ Questy Web Design and Webmaster Issues 4 03-30-1999 05:30 PM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 04:20 AM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.