Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 21st, 2005, 12:54 AM
Les Juby
Guest
 
Posts: n/a
Default Using @ media to stop table (& image) splitting

I'm trying to print a simple catalogue of products but where an image
straddles a page break, the image either disappears completely or else
the first half prints at the bottom of the page but the second half
does not print at the top of the following page.? Huh.?

The single image for each record is contained inside of a table with a
simple construct. No rowspans just an ordinary <td> placement.

The output can be viewed at:

http://www.seaport.co.za/cat7.asp

I believe that it's CSS-2 that's needed. @media:page or
something which will pagebreak if the table (which contains the image)
is too big. There must be examples somewhere.?

I think this goes into the CSS file...

@ media print {
/*start print block*/
img {
display:block;
page-break-inside:avoid;
}
}/*end print block*/v


and I think this goes into the tables (HTML) I want to keep intact...

<table style="page-break-inside: avoid;">

Any suggestions please.....?

thanks

.les.


o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
Les Juby lesjuby@anti-spam.iafrica.com
Webpro Internet - - - Prosoft Microsystems
Durban, KwaZulu-Natal, South Africa
P.O.Box 35243, Northway 4065, South Africa
Tel: +27 31 563-8344 Fax: +27 31 564-4928
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
(you *do* know to take "anti-spam" out the address....?
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles