473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Printing Cell Borders

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:
+--------+-----------------------------+
| | |

page break

| | |
+--------+-----------------------------+

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

page break

+--------+-----------------------------+
| | |
+--------+-----------------------------+

Does anybody know of the 'trick' to do this either in CSS or HTML
properties?
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #1
5 4592
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.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #2
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

Jul 20 '05 #3
On Sat, 09 Oct 2004 18:19:11 +0100, in
comp.infosystems.www.authoring.stylesheets Philip Ronan
<ph***********@virgin.net> wrote:
| 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.

---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #4
So what solution is there for IE coding?

"Toby Inkster" <us**********@tobyinkster.co.uk> wrote in message
news:pa****************************@tobyinkster.co .uk...
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

Jul 21 '05 #5
Terry Olson wrote:
So what solution is there for IE coding?


<!--[if IE]>
<p><a href="http://www.opera.com/">Get Opera</a>.</p>
<![endif]-->

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

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Analysis&Solutions | last post by:
Hi Folks: I've got a weird phenomenon going on with Internet Explorer on the Macintosh... The vertical cell borders are missing between the cells but appear above and below the cells! Here's...
3
by: Mark.Larsen | last post by:
I made a class that extends DataGridColumnStyle. In the Paint override I draw a border around each cell in the column. All cells look fine except for the last one (final row). The lines I draw...
1
by: Dave Bartlett | last post by:
Hello, When we print a page containing a datagrid, the first page prints fine, but all subsequent pages are printed without table / cell borders i.e. the data is just floating on the page. Is...
3
by: carlor | last post by:
Hi there, Our client has a requirement to print labels from the web site to a local printer. i.e. user logs onto web site and click a print button and the address is printed to a label printer...
10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
17
by: Grant Kelly | last post by:
I'm wondering if it's possible within HTML markup (or possibly CSS) to specify that an HTML table's headers should be placed 'over' the cell borders rather than 'within' the cells. For example...
0
by: GiftX | last post by:
VB 6.0 And Spreadsheet - Printing problem Good morning West. After much research, I found this code. It scans the spreadsheet and returns up to the last used cell. ...
0
by: dotnet2005 | last post by:
Hi Toall , I want to explain you clearly , I am having some panels having some controls CheckBox,ComboBox,Datagridview,Hyperlink,label,Listbox,Picturebox,RadioButt­ on ,Textbox)...
2
by: laszlokenez | last post by:
Tested in IE7 and FF2. I have 2 frames, 2 similar tables in them, similar CSS. (I have 1px cellpadding, and 1px border aroud the cells. From one frame I read the offsetHeight of a cell...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.