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%;
}
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%;
}
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
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
}