Current location: Hot Scripts Forums » General Web Coding » CSS » printing scrolling table cells


printing scrolling table cells

Reply
  #1 (permalink)  
Old 10-24-06, 10:28 AM
pkcidstudio's Avatar
pkcidstudio pkcidstudio is offline
Coding Addict
 
Join Date: Nov 2005
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
printing scrolling table cells

i have a scrolling table and i want people to be able to print the contents with out making a link to a bigger screen. any thoughts?
when i print it now it just prints the rows that are visible by me. i want them all displayed.
thankx in advance-
__________________
learning like everyone else
Reply With Quote
  #2 (permalink)  
Old 10-24-06, 09:01 PM
brien brien is offline
Newbie Coder
 
Join Date: Feb 2005
Location: San Francisco, CA
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
MODS: please move to CSS section

you can designate a separate stylesheet for printing when you link you css file (assuming you are linking an external css)

assuming you have a 'main' css file called main.css, and that you link it, you should have this in your html file:
Code:
<link rel="stylesheet" href="/css/main.css" type="text/css" media="screen" />
copy your main css file, which i'm assuming gives a height to the table, to a new file, let's call it print.css. in the print.css file, take off the table height. now add this extra link line below the other css link:
Code:
<link rel="stylesheet" href="/css/print.css" type="text/css" media="print" />
when you "print preview" you should now see all rows for your table
__________________
Reebosak Forums

Code a Day
Reply With Quote
  #3 (permalink)  
Old 10-28-06, 10:58 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Thread moved.
btw, there's a "report bad post" button you can use if you see a post in the wrong section.
It's the leftmost button below the poster's info.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i nead textbox to be filed with text from cells of a table... jozometak JavaScript 2 09-04-06 10:28 AM
Pretty simple ( i think) question any help!?!? 0o0o0 PHP 2 04-07-06 10:47 AM
Space being added to table cells BMS HTML/XHTML/XML 2 12-08-05 06:03 PM
Submenus in table cells andrewkooi JavaScript 1 10-15-04 10:10 AM
Problem with a sort table js function tdubyou JavaScript 0 05-03-04 09:19 AM


All times are GMT -5. The time now is 01:57 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.