HighDots Forums  

Printing Cell Borders

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Printing Cell Borders in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff North
 
Posts: n/a

Default Printing Cell Borders - 10-09-2004 , 11:59 AM






I'm trying to print a tables' cell/row but when a cell/row is split
across 2 pages the cell bottom/top border doesn't print on either
page. Like this:
+--------+-----------------------------+
Quote:
| |
page break

Quote:
| |
+--------+-----------------------------+

What I would like is this:
+--------+-----------------------------+
Quote:
| |
+--------+-----------------------------+

page break

+--------+-----------------------------+
Quote:
| |
+--------+-----------------------------+

Does anybody know of the 'trick' to do this either in CSS or HTML
properties?
---------------------------------------------------------------
jnorth (AT) yourpantsbigpond (DOT) net.au : Remove your pants to reply
---------------------------------------------------------------


Reply With Quote
  #2  
Old   
Philip Ronan
 
Posts: n/a

Default Re: Printing Cell Borders - 10-09-2004 , 12:19 PM






On 9/10/04 5:59 pm, Jeff North wrote:

Quote:
I'm trying to print a tables' cell/row but when a cell/row is split
across 2 pages the cell bottom/top border doesn't print on either
page.
So you want borders to appear *inside* your TD elements? I don't think that
is possible.

However, in CSS2 you could try preventing page breaks inside TD elements by
adding

TD { page-break-inside: avoid }

to your stylesheet. But I have no idea how many browsers support this.

--
Philip Ronan
phil.ronanzzz (AT) virgin (DOT) net
(Please remove the "z"s if replying by email)




Reply With Quote
  #3  
Old   
Jeff North
 
Posts: n/a

Default Re: Printing Cell Borders - 10-09-2004 , 01:46 PM



On Sat, 09 Oct 2004 18:19:11 +0100, in
comp.infosystems.www.authoring.stylesheets Philip Ronan
<phil.ronanzzz (AT) virgin (DOT) net> wrote:

Quote:
| On 9/10/04 5:59 pm, Jeff North wrote:
|
| > I'm trying to print a tables' cell/row but when a cell/row is split
| > across 2 pages the cell bottom/top border doesn't print on either
| > page.
|
| So you want borders to appear *inside* your TD elements? I don't think that
| is possible.
|
| However, in CSS2 you could try preventing page breaks inside TD elements by
| adding
|
| TD { page-break-inside: avoid }
|
| to your stylesheet. But I have no idea how many browsers support this.
Thanks for the reply.
I tried that but some of the cells are quite large. This means that a
page can appear almost empty because the next cell/row might be one or
two lines too long for the current page.

---------------------------------------------------------------
jnorth (AT) yourpantsbigpond (DOT) net.au : Remove your pants to reply
---------------------------------------------------------------


Reply With Quote
  #4  
Old   
Terry Olson
 
Posts: n/a

Default Re: Printing Cell Borders - 10-13-2004 , 07:00 PM



So what solution is there for IE coding?

"Toby Inkster" <usenet200410 (AT) tobyinkster (DOT) co.uk> wrote

Quote:
Philip Ronan wrote:
TD { page-break-inside: avoid }
But I have no idea how many browsers support this.

Opera 5+. Pretty much nothing else.
http://www.westciv.com/style_master/.../printing.html

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.