[html] Rounded table corners CSS only

For me, the Twitter Bootstrap Solution looks good. It excludes IE < 9 (no round corners in IE 8 and lower), but that's O.K. I think, if you develop prospective Web-Apps.

CSS/HTML:

_x000D_
_x000D_
table { _x000D_
    border: 1px solid #ddd;_x000D_
    border-collapse: separate;_x000D_
    border-left: 0;_x000D_
    border-radius: 4px;_x000D_
    border-spacing: 0px;_x000D_
}_x000D_
thead {_x000D_
    display: table-header-group;_x000D_
    vertical-align: middle;_x000D_
    border-color: inherit;_x000D_
    border-collapse: separate;_x000D_
}_x000D_
tr {_x000D_
    display: table-row;_x000D_
    vertical-align: inherit;_x000D_
    border-color: inherit;_x000D_
}_x000D_
th, td {_x000D_
    padding: 5px 4px 6px 4px; _x000D_
    text-align: left;_x000D_
    vertical-align: top;_x000D_
    border-left: 1px solid #ddd;    _x000D_
}_x000D_
td {_x000D_
    border-top: 1px solid #ddd;    _x000D_
}_x000D_
thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {_x000D_
    border-radius: 4px 0 0 0;_x000D_
}_x000D_
thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {_x000D_
    border-radius: 0 0 0 4px;_x000D_
}
_x000D_
<table>_x000D_
  <thead>_x000D_
    <tr><th>xxx</th><th>xxx</th><th>xxx</th></tr>_x000D_
  </thead>_x000D_
  <tbody>_x000D_
    <tr><td>xxx</td><td>xxx</td><td>xxx</td></tr>_x000D_
    <tr><td>xxx</td><td>xxx</td><td>xxx</td></tr>_x000D_
    <tr><td>xxx</td><td>xxx</td><td>xxx</td></tr>_x000D_
    <tr><td>xxx</td><td>xxx</td><td>xxx</td></tr>_x000D_
    <tr><td>xxx</td><td>xxx</td><td>xxx</td></tr>_x000D_
  </tbody>_x000D_
</table>
_x000D_
_x000D_
_x000D_

You can play with that here (on jsFiddle)

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to css

need to add a class to an element Using Lato fonts in my css (@font-face) Please help me convert this script to a simple image slider Why there is this "clear" class before footer? How to set width of mat-table column in angular? Center content vertically on Vuetify bootstrap 4 file input doesn't show the file name Bootstrap 4: responsive sidebar menu to top navbar Stylesheet not loaded because of MIME-type Force flex item to span full row width

Examples related to html-table

Table column sizing DataTables: Cannot read property 'length' of undefined TypeError: a bytes-like object is required, not 'str' in python and CSV How to get the <td> in HTML tables to fit content, and let a specific <td> fill in the rest How to stick table header(thead) on top while scrolling down the table rows with fixed header(navbar) in bootstrap 3? Sorting table rows according to table header column using javascript or jquery How to make background of table cell transparent How to auto adjust table td width from the content bootstrap responsive table content wrapping How to print table using Javascript?

Examples related to rounded-corners

ImageView rounded corners How to programmatically round corners and set random background colors Rounded Button in Android Android - drawable with rounded corners at the top only CSS rounded corners in IE8 How to make the corners of a button round? How to make CSS3 rounded corners hide overflow in Chrome/Opera How to round the corners of a button Rounded table corners CSS only UIView with rounded corners and drop shadow?