473,657 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #1
5 4608
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***********@v irgin.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.infosystem s.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****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #4
So what solution is there for IE coding?

"Toby Inkster" <us**********@t obyinkster.co.u k> wrote in message
news:pa******** *************** *****@tobyinkst er.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
2818
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 the page and a screen shot a friend took for me because I use Windows. Shot: http://www.bikesummer.org/2003/local/rentals.jpg Page: http://www.bikesummer.org/2003/local/rentals.php
3
2918
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 in the far right and bottom of the cell don't show. I can draw 1 pixel up from the bottom and 1 pixel left of the right border. What is preventing me from painting the border around this last cell?
1
1130
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 this a known issue? Any ideas?
3
3546
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 connected to the user's computer. After much searching I think I've come to the conclusion that these are the only possible ways of doing this: 1. Javascript Window.print()
10
45196
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 event..., to no avail Any ideas Regards
17
5836
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 (requires monospace font): Default: +--------------------+ | H1 H2 H3 | +--------------------+
0
1342
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. xlWksht.Cells.Find(What:="*", After:=, SearchDirection:=xlPrevious).Select Note: The above code returned all the data in the used cells. Print Problem#1: Based on the code above, I execute this code: Selection.PrintOut But instead of printing the data returned with the...
0
1163
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) &(Oval,Line,Rectangle ). with .BorderStyle = BorderStyle.FixedSingle . All these things are generating at runtime
2
3991
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 (getElementById), and set the height of the corresponding cell in the other frame. Here: window.parent.frames.document.getElementById('r2').style.height=(document.getElementById('r2'i).offsetHeight) + 'px'; Everything works perfectly, cell gets...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7324
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1611
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.