HighDots Forums  

IE is printing an extra page while Firefox is not

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE is printing an extra page while Firefox is not in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul
 
Posts: n/a

Default IE is printing an extra page while Firefox is not - 10-26-2007 , 10:34 AM






I view the same page in IE and Firefox. When I print form either, IE prints
an extra blank page at the end while Firefox prints correctly and does not.

Any ideas?

Here's the end of the source page:

....
<body>
<FORM>
<INPUT TYPE="button" onClick="window.print()" value="Print This"
class="prnt">
</FORM>
<div class="schedules"> <table class="dataTable">
<tr><th scope="col" colspan="4">Title</th><th scope="col" colspan="4">As of:
November 01, 2007</th></tr>
<tr><th scope="col"></th><th scope="col">Description</th><th
scope="col">Serial #</th><th scope="col">Value</th><th scope="col">Date
Added<br />Stopped</th><th scope="col">Cost</th></tr>
<tr><td class="property_columns">1</td><td class="property_columns">LAPTOP
COMPUTERS</td><td class="property_columns"></td><td
class="property_columns">$200</td><td class="property_columns"><br
/></td><td class="property_columns">$75</td></tr>
.....
<tr><td colspan="7">text here</td></tr>
</table>
</div><!--End of div tag-->
</body>
</html>


And here's the stylesheet:

@CHARSET "ISO-8859-1";
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
margin: 10px;
padding: 0;
}
..header1{width: 100%;font-size: 20px;font-weight: bold;text-align:center;}
..header2{width: 100%;font-size: 14px;text-align:center;}
..header3{width: 100%;font-size: 11px;text-align:center;}

..schedules{display:block;page-break-after:always}

..dataTable{width: 100%;border-collapse: collapse;}
..dataTable td{padding: 6px;margin: 0px;}
..dataTable td.property_columns{width:80px;border-top:1px solid #CCCCCC;}
..dataTable th{font-weight: bold;text-align: left;font-size:
10px;background-color: #DDDDDD;border-bottom: medium double #000000;}



Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: IE is printing an extra page while Firefox is not - 10-26-2007 , 10:57 AM






"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote

Quote:
Paul wrote:

I view the same page in IE and Firefox. When I print form either,

Print form? Print a form? Or is that a typo for "print from" ?

IE prints an extra blank page at the end while Firefox prints
correctly and does not.

Any ideas?

Yes.

Here's the end of the source page:

Provide the URL to the page so someone can test it. You code leaves so
much out, any answer would just be a guess.
Sorry, it is an intranet and not available to the world. What else do you
need? When I say print, I mean the user is trying to print the page, The
page is formatted as a report, though that doesn't matter. I thought I had
given all the supporting code. What am I missing for your help?




Reply With Quote
  #3  
Old   
Paul
 
Posts: n/a

Default Re: IE is printing an extra page while Firefox is not - 10-26-2007 , 10:58 AM



"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote

Quote:
Paul wrote:

I view the same page in IE and Firefox. When I print form either,

Print form? Print a form? Or is that a typo for "print from" ?
typo - print FROM...




Reply With Quote
  #4  
Old   
Paul
 
Posts: n/a

Default Re: IE is printing an extra page while Firefox is not - 10-26-2007 , 12:33 PM



many thanks!


"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote

Quote:
Paul wrote:

Sorry, it is an intranet and not available to the world. What else do
you
need?

Some more details from you on what you already tested?
Whether or not you validated the code and CSS?
Whether or not you are using a proper DOCTYPE that doesn't throw the
non-conformant IE into Quirks mode?

When I say print, I mean the user is trying to print the page, The
page is formatted as a report, though that doesn't matter. I thought
I had given all the supporting code. What am I missing for your
help?

Don't you have any web server somewhere that you could upload a test
case?

I was able to do that (with what most consider extra effort) here:
http://k75s.home.att.net/test/paul.html

I commented out the "page-break-after" and now IE only prints one sheet
of paper:

.schedules{display:block;/* page-break-after:always */}

I also added a DOCTYPE, and removed your "@CHARSET "ISO-8859-1";" as
that does not belong in CSS.

There are errors in your markup, so all bets are off as to how various
browsers will try to correct them.

http://validator.w3.org/check?uri=ht...up=0&verbose=1

Your CSS does validate:
http://jigsaw.w3.org/css-validator/v...st%2Fpaul.html

--
-bts
-Motorcycles defy gravity; cars just suck



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.