Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-30-2007, 04:16 AM   PM User | #1
t-buck
New Coder

 
Join Date: Sep 2007
Posts: 59
Thanks: 7
Thanked 0 Times in 0 Posts
t-buck is an unknown quantity at this point
CSS Print Stylesheet issues

I have implemented a stylesheet for printing, but when you print it, there are 2 pages, but the second page is completely blank. Can I force it to print just 1 page.

My other question on this same page, is in firefox it looks fine, but in Opera and IE the page goes on forever. Is there a way to fix this?

Thanks everybody.

http://www.lincolnsafari.org/registration.html
t-buck is offline   Reply With Quote
Old 10-30-2007, 05:53 AM   PM User | #2
jlhaslip
Regular Coder

 
Join Date: Feb 2007
Location: Canada
Posts: 924
Thanks: 10
Thanked 56 Times in 55 Posts
jlhaslip is on a distinguished road
Start here:

http://www.w3.org/QA/2002/04/valid-dtd-list.html

Put a valid Doctyupe on the page. It will avoid Quirks mode and (hopefully) make it easier to design for cross Browser performance by having all the browsers use the same rules. Well, at least it removes a bunch of issues.

Then run the page through the w3c validator. Couple of errors on the page need cleaning up. That might help.
jlhaslip is offline   Reply With Quote
Old 10-30-2007, 04:31 PM   PM User | #3
t-buck
New Coder

 
Join Date: Sep 2007
Posts: 59
Thanks: 7
Thanked 0 Times in 0 Posts
t-buck is an unknown quantity at this point
Which doctype would I use?

This one?

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
t-buck is offline   Reply With Quote
Old 10-30-2007, 04:35 PM   PM User | #4
BWiz
Regular Coder

 
BWiz's Avatar
 
Join Date: Mar 2006
Location: Sol System
Posts: 471
Thanks: 7
Thanked 21 Times in 21 Posts
BWiz is an unknown quantity at this point
You should be using XHTML, however HTML is fine depending on what your trying to achieve.

My preference is to use XHTML 1.0 Strict, however other doctypes are fine as well.
__________________
BWiz :: Happy Coding!
2006
2007 2008 2009
2010 2011
Irrational numbers make no sense.
BWiz is offline   Reply With Quote
Old 10-30-2007, 04:45 PM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
But don't use <?xml version="1.0" encoding="utf-8"?> at the top, since it'll cause IE to go in to quirks mode
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 10-30-2007, 04:46 PM   PM User | #6
t-buck
New Coder

 
Join Date: Sep 2007
Posts: 59
Thanks: 7
Thanked 0 Times in 0 Posts
t-buck is an unknown quantity at this point
I added the doc type, and when I try to validate the css, I get this error:

Servlet has thrown exception:javax.servlet.ServletException: Timed out

What does that mean?
t-buck is offline   Reply With Quote
Old 10-30-2007, 04:54 PM   PM User | #7
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
It just means the validation server is having issues. Try it again.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 10-30-2007, 05:10 PM   PM User | #8
t-buck
New Coder

 
Join Date: Sep 2007
Posts: 59
Thanks: 7
Thanked 0 Times in 0 Posts
t-buck is an unknown quantity at this point
Aerospace do you know if there is a way to force a print stylesheet to only print 1 page, even though it thinks there is something on page 2?

And do you know why in Opera the page goes on forever?
t-buck is offline   Reply With Quote
Old 10-30-2007, 08:57 PM   PM User | #9
jlhaslip
Regular Coder

 
Join Date: Feb 2007
Location: Canada
Posts: 924
Thanks: 10
Thanked 56 Times in 55 Posts
jlhaslip is on a distinguished road
there seems to be some 'blank' stuff at the bottom of the page. The print selection is likely trying to spew that out, too. Review the Heights on the elements.


Last edited by jlhaslip; 10-30-2007 at 09:10 PM.. Reason: forgot the image
jlhaslip is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:46 PM.


Advertisement
Log in to turn off these ads.