Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Sytle only prints on First Page
Old 01-08-2007, 01:41 PM Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
I am attempting to create an HTML document with 2 pages. I would like both page's contents to be within a border of style ='double'. I am using a page-break to force some formatting. For some reason only the second page prints with the border. As it is, I have an inline border style for the top half and have created a div.border class for the bottom half. Why is it that only the second half is getting formatting? Any ideas?

Thanks,

Nick
SpudNik is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-08-2007, 01:47 PM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
Attachment
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-08-2007, 03:27 PM Re: Sytle only prints on First Page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Are you using a print stylesheet ?
Is the problem only in 1 browser ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-08-2007, 04:39 PM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
LadynRed,

No I am trying to make two borders, 1 on each page, using a class and inline style. Can this be done?

MyHTMLFILE.txt
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-08-2007, 10:14 PM Re: Sytle only prints on First Page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Yes, but you really should use a print stylesheet:

http://alistapart.com/articles/goingtoprint/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 12:09 AM Re: Sytle only prints on First Page
Banned

Posts: 905
Name: Travel Agent
Trades: 0
I agree with LadynRed.
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 11:35 AM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
Thanks for your replies!


I'm not sure I am explaining myself very well. I know how to create a 'print friendly' version of a document using a linking style sheet. What I need, is for a border to stop at a page-break and resume at the following page. Page 1 text wrapped in a border, then page 2 text wrapped in a border. That is all. So far, just the latter (page 2) half gets the border when printed (attached). I don't see anywhere in these tutorials an explaination how to preserve formatting. I'm not concerned with things like font size, margins, menus, etc. Does this make sense?

-Nick
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 11:46 AM Re: Sytle only prints on First Page
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Okay; I better understand what you're after now, so here's a couple of Tutorials for you:

Tutorial 1
Tutorial 2
Tutorial 3
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 01:14 PM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
Thanks..

This has got me pretty close. I think the footers might be messing it up. Im playing with this now!

-Nick
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 01:32 PM Re: Sytle only prints on First Page
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Kewl -- at least we're getting you closer to a final solution!
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 02:02 PM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
Ya, the darn thing finishes the border on the first line of the second page.. It's challenges like these... I tell ya. haha
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 04:59 PM Re: Sytle only prints on First Page
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
So I got it to work. It would appear that you were right all along. For some reason if I define two differant classes (p.border1;p.border2) in a CSS file and then just link this style sheet to my my HTML it works. I'm a bit confused as to why this can't just be done using inline styles using closing </p> tags. Or by defining these same classes within my <head>. Don't mess with what works!
SpudNik is offline
Reply With Quote
View Public Profile
 
Old 01-09-2007, 05:15 PM Re: Sytle only prints on First Page
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Outstanding -- glad you got it working; thanks for the kudos!
travelagent is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sytle only prints on First Page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41432 seconds with 13 queries