3

This is a question keeping me busy for a while now.

As you can see in the fiddle I'm trying to set a border to the top of the cells. I want to achieve that the borders of the cells look like the border I gave the div. Have you got any idea how to do it? I already tried to set a border-image, but it wouldn't work, too.

user1437032
  • 125
  • 1
  • 7
  • possible duplicate of [CSS dotted border render issue](http://stackoverflow.com/questions/8822810/css-dotted-border-render-issue) – Jukka K. Korpela Jul 12 '12 at 16:11
  • The question is not really about border collapse. It’s about rendering borders in a table at cell corners, and this is well covered in an older question. – Jukka K. Korpela Jul 12 '12 at 16:12

2 Answers2

1

Are you saying this is what you are expecting: http://jsfiddle.net/35qgP/4/

table {
    width: 50%;
}
.border1 td {
    border-top: 3px solid red;
}
.border2 td {
    border-top: 1px dotted blue;
}
.border3 td {
    border-top: 1px dashed blue;
}

Or use a border-collapse: collapse; for all the tds this way:

td {border-collapse: collapse;}
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
0

Try this?

http://jsfiddle.net/35qgP/2/

Rocky Pulley
  • 22,531
  • 20
  • 68
  • 106
Billy Moat
  • 20,792
  • 7
  • 45
  • 37
  • Hi, the number of px does not matter. It's more that the blue dots are doubled. The eye catches the irregularity. – user1437032 Jul 12 '12 at 15:33