Browser

Question

HTML question

So I got a long page of tables, it's meant to be printed. each table is one after another, with no line breaks.Basically, its table /table table /tableetc.It's done this way to look like a table in word, but as separate tables so that HTML paginates properly.

This works good, but the borders of the tables double up, making the top border of each subsequent table double width in appearance.I fixed this in css by setting the top border of the table to 0. Thus, every bottom border is the next tables top border and it looks good. For the first table in the list, I changed the code to put the top border. Making it the only table in the list of tables that has a top border.

But my issue, when the tables get distributed to printed pages, the second page starts the table without the top border.

So how do I fix it so that, either the first table on the second page has the border, or that the borders don't double each other up?

Still need help

is split tables to look like pages an option?

without knowing the content type I can only askwould splitting the tables to appear as individual pages work?or would it be disruptive to the content when viewed in the browser?- obviously it wouldn't be disruptive to the content in the printed formas each table should end up on it's own page anyway

maybe you could build like thistable/tablep/phlinep/ptable/table

or table/tablebrhlinebrtable/table

etc. . ..

build the tables so that the hline p /p or hline br is the last thing on each printed pageand the next table is the first thing on subsequent pages

after a short trip to the g search boxapparently there are ways to do page breaks in HTML code for printing(google results for: force page break html for printing purposes = About 356,000,000 results)

but I haven't done any of that type of codingI just create split tables for web viewingwhere the content changes and requires a separate table but on the same pageand usually use either p /p or br or combination

Would it be possible...

to just forgo using multiple tables and instead throw everything in to one table and edit each line of cells? For example, edit the first row to have a slightly thicker border to simulate a new table. I haven't done ANY HTML since college so I couldn't give any first hand code examples...but here's a link I found that helps explain how to assign a border on one side of a cell:

Reponse To Answer

When I did that, it didn't seem possible to cause HTML to know where to break a table for each page. You can tell it not to split a single row, but not to keep two rows always together (header and details).This is a picture of what each table looks like.http://trevorsarchives.homenet.org/temp/CropperCapture%5b1%5d.jpgYou can see the original double border problem.

Reponse To Answer

In that case, I would try sticking a table within a table. What I mean is, if you have 2 rows that you always want to stay together, stick those two rows within a cell of the larger table, then use the border options on that larger table. Maybe HTML would keep that data together is if was "encapsulated" within a cell of a larger table.

I dunno, you probably tried all that. Problems like these are difficult to get across or solve, lol.

Ok tried it, didn't work

If I make the inner tables have the borders, they still double up, if I have the outer table have the borders. It messes up on the page break by drawing the bottom of the cell on the next page, so the last cell of page 1 won't have a border (it shows on page 2 instead). Which is just the opposite problem I had before.

Create a new discussion

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

Post type

Subject title

Topic Tags

Select up to 3 tags (1 tag required)

Cloud

Piracy

Security

Apple

Microsoft

IT Employment

Google

Open Source

Mobility

Social Enterprise

Community

Smartphones

Operating Systems

Windows

Mac

Malware

Tablets

Networking

Browser

Hardware

Software

Web Developerment

Linux

Off Topic

Message Body

Track this discussion and email me when there are updates

Please note: Do not post advertisements, offensive material, profanity, or personal attacks. Please remember to be considerate of other members. If you're new to the TechRepublic Forums, please read our TechRepublic Forums FAQ. All submitted content is subject to our Terms Of Use.