Previous Message
Next Message

CSS Print

Sent by Jukka K. Korpela on 29 January 2005 12:12


On Fri, 28 Jan 2005, Brian Peddle wrote:

> We have users who want to print this page and text is chopped off from
> the input box.
>
> I thought using a CSS Print Style could help here.

There's something you could do:

@media print { input { width: 100%; } }

tells the browser use the available width. I haven't found a way to make
browsers wrap the text, though, so if it doesn't fit on one line, it'll
still appear as truncated.

Generally, the best way to deal with the issue is to make the form handler
(server-side script) echo back the user's input as normal content in a
normal HTML document, which can then be saved, printed, etc. If the data
should look like data entered in a form, more or less, you could use CSS
to draw borders around data items, etc.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: