![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
CSS for print media and background colors
A web app I've been building has the final result of generating a report for the end user. I'm trying to whip up some css for print media so that they can print it w/out wasting ink/paper on all the other junk on the screen.
The only real problem I'm having is aesthetic. When the report table is generated server side, I'm setting the background of every other row to be a very light gray (see attached jpg) to make large tables a little bit easier to read. This is done with the standard #report tr.odd {
background-color: #eee;
}Does anyone know another way to achieve this same effect? |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I would recommend using ezPDF, which is free, or something similar. Here's a reproduction of one of my reports. It has been compressed 85%, so allow for the artifacts caused by that.
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programmer
|
Sounds like that is probably the best solution. I searched a little more, and the only non-pdf option I came up with was to instruct the user to set their browser to print background colors. I can safely bet that this is a little much to ask of some of my users...
![]() My site is written in python, so it looks like reportlab is going to be my best bet for pdf generation. Have you ever used it? |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Sorry, I haven't.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do you know this kind of media player? | java_roshan | Coder's Corner Lounge | 3 | Aug 10th, 2006 12:46 PM |
| Media application | ahmedsh5 | Other Programming Languages | 4 | Mar 17th, 2005 3:48 PM |