user1119648
user1119648

Reputation: 541

Table Printing Issue: Gaps in top and Bottom Border of th Elements

I have a table that I need to print. I would like a solid 1px line above and below the header, and at the bottom of the table.

I've tried all the usual tricks:

border-collapse:collapse;
border-spacing:0;

etc.

But what I get is this:

jsFiddle

What am I doing wrong?

Upvotes: 2

Views: 1302

Answers (2)

lc.
lc.

Reputation: 116458

Adding these to the table element ought to fix it:

table {
    border-collapse: collapse;
    border-spacing: 0px;
}

Upvotes: 0

Omar Moustafa
Omar Moustafa

Reputation: 81

simple use cellspacing="0" cellpadding="0" in the table tag :)

so it be <table cellspacing="0" cellpadding="0">

Upvotes: 4

Related Questions