Soure HTML Design Table - Border Radius Gray 60.

Mẫu thiết kế bảng(table) có boder radius(điền viền cong) HTML theo tông màu trắng và xám(white & gray), kèm theo hiệu ứng chuột tô màu khi dòng dữ liệu được con trỏ chuột(mouse) trỏ vào.

Image Design:



Demo:

Firstname Lastname Points
Jill Smith 50
Eve Jackson 94
John Doe 80



HTML Source:

<!DOCTYPE html>
<html>
<head>

<style type='text/css'>

/* Table Styles */

table {

}

table.table_style_01
{

    background:#ccc;
    border:#ccc 1px solid;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px
 
}

table.table_style_01 th
{
    padding:4px 10px   
}

table.table_style_01 td
{
    padding: 0.5ex 0.5ex; 
    border: 01px solid #ccc;
    background-color: #FFF;
}

table.table_style_01 tr:last-child td:first-child
{
    -moz-border-radius-bottomleft:10px;
    -webkit-border-bottom-left-radius:10px;
    border-bottom-left-radius:10px
}
   
table.table_style_01 tr:last-child td:last-child
{
    -moz-border-radius-bottomright:10px;
    -webkit-border-bottom-right-radius:10px;
    border-bottom-right-radius:10px
}

table.table_style_01 tr:hover td
{
  background-color: #EEEEEE;
}

</style>

</head>
<body>

<table style="width:100%" class="table_style_01" cellspacing='0'>
<tr>
  <th>Firstname</th>
  <th>Lastname</th>       
  <th>Points</th>
</tr>
<tr>
  <td>Jill</td>
  <td>Smith</td>       
  <td>50</td>
</tr>
<tr>
  <td>Eve</td>
  <td>Jackson</td>       
  <td>94</td>
</tr>
<tr>
  <td>John</td>
  <td>Doe</td>       
  <td>80</td>
</tr>
</table>

</body>
</html>



Write: +Bui Ngoc Son




No comments:

Post a Comment