0

I am trying to get curved corners on a table, however nothing is happening when I add border-radius. I've tried adding !important but it didn't help.

.table {
border: 3px solid #d8d8d8;
border-radius: 10px;
}

Thanks if someone can fix it

Braddp
  • 67
  • 2
  • 5
  • 1
    Your answer: [link](https://stackoverflow.com/questions/628301/css3s-border-radius-property-and-border-collapsecollapse-dont-mix-how-can-i) – iVoidWarranties Dec 17 '17 at 17:07

2 Answers2

0

You can add an div around with class panel.

<div class="panel panel-default">
 <table class="table table-bordered">
    &nbsp;
 </table>
</div>

https://codepen.io/Ylama/pen/BJjBeq

Ylama
  • 2,449
  • 2
  • 25
  • 50
0

This is the solution

HTML :

<table class="table">
 <tr>
  <td>i am a good guy you think ? am i.....</td>
 </tr>
</table>

CSS :

.table{
  border: 3px solid #d8d8d8;
  border-radius: 10px;
}

codepen

Amit Kumar
  • 304
  • 1
  • 8