-4

I have a CSS file in that a table is declared, i want to add curved edge. if i try border-radius its not coming at all. This is the code

table.display {
    margin: 0 auto;
    clear: both;
    width: 100%;
}
Naruto
  • 9,476
  • 37
  • 118
  • 201

2 Answers2

2

Try this Css

table.display {
    margin: 0 auto;
    clear: both;
    width: 100%;
    border :1px solid #000;
    border-radius :5px;
    -moz-border-radius :5px; 
    -o-border-radius :5px;
    -webkit-border-radius :5px;
}

Here is the jsfiddle LINK

Sieryuu
  • 1,510
  • 2
  • 16
  • 41
1

There should be either border color or background color to apply the radius

HTML

<table class="display">
    <tr>
        <td>table</td>
    </tr>
    </table>

CSS

table.display {
    margin: 0 auto;
    clear: both;
    width: 100%;;
    color:white;
    background:green;
    border-radius:6px
}

DEMO

Sowmya
  • 26,684
  • 21
  • 96
  • 136