Welcome to WebmasterWorld Guest from 54.167.61.200

Forum Moderators: not2easy

Message Too Old, No Replies

Need to resize a DIV for printing

     
4:13 pm on Feb 13, 2004 (gmt 0)

New User

10+ Year Member

joined:Feb 13, 2004
posts:4
votes: 0


Hi, I found this thread [webmasterworld.com] about resizing a DIV to fit an A4 page using the print media.

I've got the same problem, I've tried the suggestions in that thread and no joy.

The "main" DIV has a text overflow, and the print preview will only display the DIV at it's current size and includes the scroll bars - which are of course useless on a printed page - so half the text is lost.

I've tried putting all the text into a parent table and telling it to print that, but it can't break the table free of the DIV dimensions.

It wont allow me to redefine the DIV size in the print.css file.

Any ideas much appreciated!

4:59 pm on Feb 13, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:175
votes: 0


Try:

@media print {#nav, #otherjunk {display: none; }
#main, html, body {overflow: visible; width: auto; }
}

Adam

5:15 pm on Feb 13, 2004 (gmt 0)

New User

10+ Year Member

joined:Feb 13, 2004
posts:4
votes: 0


Nope, no good, tried that already.
:(

Is there anyway to define the size of a DIV in the css file?

That way I could set the size for #main in the screen and print files.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members