troubleshooting Question

Print HTML Table Cut off

Avatar of john_yourspace
john_yourspace asked on
CSSHTMLColdFusion Language
8 Comments2 Solutions2952 ViewsLast Modified:
Hi guys,

I am having some problem with a long html table been cut off when printing, this is happening in most browsers specfically firefox

I am using two stylesheets one for print one for display

<link type="text/css" rel="stylesheet" href=">css/main.css" />
<link type="text/css" rel="stylesheet" href="css/print.css" media="print"/>


My table looks like this (code is a coldfusion record set looped for 500+ records)

<table>
                    	<thead>
						<tr>
								<th>QTY</th>
								<th>Item #</th>
								<th>Description</th>
								<th>Unit Price</th>
								<th>Total Price</th>	
						</tr>
						</thead>
                        
                       
                        
                        
                        <tbody>
						<cfset total = 0>
						<cfoutput query="rsOrder_t">
							<tr>
								<td>#rsOrder_t.qtytoorder#</td>
								<td>#rsOrder_t.item_num#</td>
								<td>#rsOrder_t.description#</td>
								<td>#rsOrderlist_t.currency_symbol##LSCurrencyFormat(rsOrder_t.price , "none")#</td>
								<cfset totalItemprice = rsOrder_t.price *rsOrder_t.qtytoorder>
								<td>#rsOrderlist_t.currency_symbol##LSCurrencyFormat(totalItemprice , "none")#</td>	
								<cfset total = total + totalItemprice>
							
							</tr>
						</cfoutput>
                        </tbody>
                        
                          <tfoot>
						<tr>
							<td colspan="1">&nbsp;</td>
							<td colspan="1">Total</td>
							<td colspan="5" align="right">
								<cfoutput>#rsOrderlist_t.currency_symbol##LSCurrencyFormat(total, "none")#</cfoutput>
							</td>
						</tr>
						</tfoot>
                       
					</table>

print style looks like this

print.css
ASKER CERTIFIED SOLUTION
john_yourspace

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros