0

i apply a border-radius to my table but it's not working

CSS :

table {
    border: 1px solid;
    border-radius: 10px;
    border-collapse: collapse;
}

here's a FIDDLE

PS. i want to use border-collapse: collapse not border-collapse: separate

Hayi
  • 6,972
  • 26
  • 80
  • 139

4 Answers4

4

Did you try removing border-collapse: collapse?

table {
    border: 1px solid;
    border-radius: 10px;
}
Emanuel Vintilă
  • 1,911
  • 4
  • 25
  • 35
Kets
  • 438
  • 2
  • 8
  • 24
2

remove your border-collapse

table{
    border: 1px solid;
    border-radius: 10px;
}
0

Edit this in your table:

table {
    border: 2px solid black;
    border-radius: 10px;
    overflow:hidden;
}

And here is the edited fiddle: http://jsfiddle.net/piyushkmr/TExvf/7/

-3

Box properties only works with DIV tag. you can do that if you want to create your table with DIV.

bjb568
  • 11,089
  • 11
  • 50
  • 71
  • 1
    "Box properties only works with DIV tag." What do you mean? What are these box properties you refer to, and why only div? – BoltClock May 23 '14 at 09:14
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – bjb568 Jun 18 '14 at 03:33