Print version use CSS or similar ?

J

JDP@Work

I've seen info regarding using CSS to control browser verses printer output,
however I'm not sure I'm on the right track.

The goal is to have a printable version w/out having to code a duplicate page
that is printer friendly.

1. I don't get how to use the CSS method, perhaps I havent' read enough.

2. I'd like to add scroll bars to my panel that my table resides in, however I'd
like the resulting <div> tag to not to have scrollbars and down & dirty print
all rows in the table.

Basically I want to enable a scrollable table and still print all the content.

3. Since most of the examples I've seen do not involve .Net; does anyone have a
link to making a printer friendly version of a page in .Net.

TIA

JeffP....
 
A

agapeton

This really has nothign to do with .NET.

I think you want something lke this...

@media print {
div#myId {
overflow: auto;
}
}

The overflow css keyword does that stuff...
 
J

JDP@Work

Please foregive me, but this is exactly what I've seen and the reason I posted
and requested examples.

In .Net there are places to put things, like javascript in literals, html in the
aspx page and in my world VB.Net in the code behind, yes it's still 1.1 for my
clients and myself and elements in the CSS.

So where does this snipit go?


TIA

JeffP....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top