<div class="cp_pricetable1">
<div class="block">
<ul>
<li class="header1">メニュー</li>
<li class="header2">¥0,000</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="footer1"><a href="#" class="cp_btn">ボタン</a></li>
</ul>
</div>
<div class="block">
<ul>
<li class="header1">メニュー</li>
<li class="header2">¥0,000</li>
<li class="style2">テキスト</li>
<li class="style2">テキスト</li>
<li class="style2">テキスト</li>
<li class="style2">テキスト</li>
<li class="style2">テキスト</li>
<li class="footer2"><a href="#" class="cp_btn">ボタン</a></li>
</ul>
</div>
<div class="block">
<ul>
<li class="header1">メニュー</li>
<li class="header2">¥0,000</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="style1">テキスト</li>
<li class="footer1"><a href="#" class="cp_btn">ボタン</a></li>
</ul>
</div>
</div>
.cp_pricetable1 {
text-align: center;
color: #444444;
}
.cp_pricetable1 .block {
position: relative;
float: left;
width: 33%;
height: 100%;
transition: all 0.2s ease-in-out;
-webkit-transform: translate(0px, 0px);
transform: translate(0px, 0px);
}
.cp_pricetable1 .block ul, li {
margin: 0;
padding: 0;
list-style-type: none;
}
/**** blockのhover ****/
.cp_pricetable1 .block:hover {
position: relative;
z-index: 100;
transition-delay: 0s;
-webkit-transform: translate(-2px,-2px);
transform: translate(-2px,-2px);
box-shadow: 0px 0 5px rgba(0,0,0,0.5);
}
.cp_pricetable1 .block:hover .header1,
.cp_pricetable1 .block:hover .header2,
.cp_pricetable1 .block:hover .style1,
.cp_pricetable1 .block:hover .style2,
.cp_pricetable1 .block:hover .footer1,
.cp_pricetable1 .block:hover .footer2 {
padding: 0.5em;
}
/* --- メニュー名ブロック --- */
.cp_pricetable1 .block .header1 {
width: 100%;
padding: 0.5em;
color: #ffffff;
border-bottom: 1px solid #ffffff;
background: #131874;
}
/* --- 価格ブロック --- */
.cp_pricetable1 .block .header2 {
width: 100%;
padding: 0.5em;
border-top: 1px solid #131874;
background: #a9bce2;
}
/* --- 詳細 --- */
.cp_pricetable1 .block .style1,
.cp_pricetable1 .block .style2,
.cp_pricetable1 .block .footer1,
.cp_pricetable1 .block .footer2 {
width: 100%;
padding: 0.5em;
}
.cp_pricetable1 .block .footer1,
.cp_pricetable1 .block .footer2 {
padding: 0.5em;
}
.cp_pricetable1 .block .style1,
.cp_pricetable1 .block .footer1 {
background-color: #e8effc;
}
.cp_pricetable1 .block .style2,
.cp_pricetable1 .block .footer2 {
background-color: #d7e3fc;
}
.cp_pricetable1 .block .style1,
.cp_pricetable1 .block .style2 {
border-bottom: 1px dotted #ffffff;
}
/*ボタンデザイン*/
.cp_pricetable1 a.cp_btn {
position: relative;
z-index: 1;
display: block;
overflow: hidden;
width: 100px;
margin-right: auto;
margin-left: auto;
padding: 0.3em 1em;
text-align: center;
text-decoration: none;
color: #ffffff;
border: 1px solid #da3c41;
border-radius: 4px;
background: #da3c41;
}
.cp_pricetable1 .cp_btn::after {
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
width: 100%;
height: 0;
content: '';
transition: 0.3s;
-webkit-transform: translate(-50%,-50%) rotate(45deg);
transform: translate(-50%,-50%) rotate(45deg);
opacity: 0;
background: #ffffff;
}
.cp_pricetable1 .cp_btn:hover {
color: #da3c41;
}
.cp_pricetable1 .cp_btn:hover::after {
height: 250%;
opacity: 1;
}
.cp_pricetable1 .cp_btn:active::after {
height: 350%;
opacity: 1;
}
<table class="cp_pricetable2">
<thead>
<tr>
<td></td>
<td>テキスト</td>
<td>テキスト</td>
<td>テキスト</td>
</tr>
</thead>
<tfoot>
<tr>
<td></td>
<td><a href="#" class="cp_btn">ボタン</a></td>
<td><a href="#" class="cp_btn">ボタン</a></td>
<td><a href="#" class="cp_btn">ボタン</a></td>
</tr>
</tfoot>
<tbody>
<tr>
<td>テキストテキスト</td>
<td>テキスト</td>
<td>テキスト</td>
<td>テキスト</td>
</tr>
<tr>
<td>テキストテキスト</td>
<td>テキスト</td>
<td>テキスト</td>
<td>テキスト</td>
</tr>
<tr>
<td>テキストテキスト</td>
<td>テキスト</td>
<td>テキスト</td>
<td>テキスト</td>
</tr>
<tr>
<td>テキストテキスト</td>
<td>テキスト</td>
<td>テキスト</td>
<td>テキスト</td>
</tr>
</tbody>
</table>
.cp_pricetable2 {
margin: 0 auto;
padding: 0em;
border-spacing: 1px 0;
border-radius: 6px;
background: #e8effc;
}
.cp_pricetable2 td {
height: 50px;
padding: 0 20px;
text-align: center;
border-bottom: 1px solid #cdcdcd;
}
/*main tableブロック*/
.cp_pricetable2 tbody td {
width: 25%;
text-align: center;
}
/* --リスト名ブロック */
.cp_pricetable2 tbody td:first-child {
font-size: 0.8em;
width: auto;
text-align: left;
white-space: nowrap;
}
.cp_pricetable2 tbody td:first-child::before {
font-family: 'FontAwesome';
content: ' \f0da';
}
/* --2,3列目 */
.cp_pricetable2 td:nth-child(2),
.cp_pricetable2 td:nth-child(3) {
border-right: 1px solid #ffffff;
background: #a9bce2;
}
/* --4列目 */
.cp_pricetable2 td:nth-child(4) {
color: #ffffff;
background: #131874;
}
/*Header テキストブロック*/
.cp_pricetable2 thead td {
font-size: 1.2em;
font-weight: bold;
border-top: none;
border-radius: 6px 6px 0 0;
}
/*Footer ボタンブロック*/
.cp_pricetable2 tfoot td {
border-bottom: none;
border-radius: 0 0 6px 6px;
}
/*ボタンデザイン*/
.cp_pricetable2 a.cp_btn {
position: relative;
z-index: 1;
display: block;
overflow: hidden;
width: 100px;
margin-right: auto;
margin-left: auto;
padding: 0.3em 1em;
text-align: center;
text-decoration: none;
color: #ffffff;
border: 1px solid #da3c41;
border-radius: 4px;
background: #da3c41;
}
.cp_pricetable2 .cp_btn:after {
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
width: 100%;
height: 0;
content: '';
transition: 0.3s;
-webkit-transform: translate(-50%,-50%) rotate(45deg);
transform: translate(-50%,-50%) rotate(45deg);
opacity: 0;
background: #ffffff;
}
.cp_pricetable2 .cp_btn:hover {
color: #da3c41;
}
.cp_pricetable2 .cp_btn:hover:after {
height: 250%;
opacity: 1;
}
.cp_pricetable2 .cp_btn:active:after {
height: 350%;
opacity: 1;
}
<table class="cp_pricetable3">
<thead>
<tr>
<th class="group1">メニュー</th>
<th class="group2">メニュー</th>
<th class="group3">メニュー</th>
</tr>
</thead>
<tbody>
<tr>
<td class="group1">¥0,000</td>
<td class="group2">¥0,000</td>
<td class="group3">¥0,000</td>
</tr>
<tr>
<td class="group1">テキスト</td>
<td class="group2">テキスト</td>
<td class="group3">テキスト</td>
</tr>
<tr>
<td class="group1">テキスト</td>
<td class="group2">テキスト</td>
<td class="group3">テキスト</td>
</tr>
<tr>
<td class="group1"><a href="#" class="cp_btn">ボタン</a></td>
<td class="group2"><a href="#" class="cp_btn">ボタン</a></td>
<td class="group3"><a href="#" class="cp_btn">ボタン</a></td>
</tr>
</tbody>
</table>
.cp_pricetable3 *, .cp_pricetable3 *:before, .cp_pricetable3 *:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_pricetable3 {
width: 100%;
margin: 0 auto;
border-spacing: 1px 0;
border-collapse: separate;
}
.cp_pricetable3 th, .cp_pricetable3 td {
padding: 10px;
}
/*Headerブロック*/
.cp_pricetable3 th {
position: relative;
z-index: 1;
width: 125px;
height: 50px;
text-align: center;
vertical-align: middle;
color: #ffffff;
border-radius: 5px 5px 0 0;
background: #88b7d5;
}
.cp_pricetable3 th:after {
font-family: 'FontAwesome';
font-size: 5em;
position: absolute;
z-index: -1;
right: 0;
bottom: -30px;
left: 0;
content: '\f0d7';
}
.cp_pricetable3 th.group1 {
background: #2e9b72;
}
.cp_pricetable3 th.group1:after {
color: #2e9b72;
}
.cp_pricetable3 th.group2 {
background: #da3c41;
}
.cp_pricetable3 th.group2:after {
color: #da3c41;
}
.cp_pricetable3 th.group3 {
background: #131874;
}
.cp_pricetable3 th.group3:after {
color: #131874;
}
/*メインブロック*/
.cp_pricetable3 tr td {
padding-top: 15px;
text-align: center;
border: none;
}
.cp_pricetable3 tr:last-child td {
border-radius: 0 0 5px 5px;
}
.cp_pricetable3 tr:nth-child(2n+1) td.group1 {
background: #8cd9bc;
}
.cp_pricetable3 tr:nth-child(2n+0) td.group1 {
background: #c3e4d8;
}
.cp_pricetable3 tr:nth-child(2n+1) td.group2 {
background: #f2c2c2;
}
.cp_pricetable3 tr:nth-child(2n+0) td.group2 {
background: #f7e1e1;
}
.cp_pricetable3 tr:nth-child(2n+1) td.group3 {
background: #a9bce2;
}
.cp_pricetable3 tr:nth-child(2n+0) td.group3 {
background: #d7e1f4;
}
/*ボタンデザイン*/
.cp_pricetable3 a.cp_btn {
position: relative;
z-index: 1;
display: block;
overflow: hidden;
width: 100px;
margin-right: auto;
margin-left: auto;
padding: 0.3em 1em;
text-align: center;
text-decoration: none;
color: #ffffff;
border: 1px solid #da3c41;
border-radius: 4px;
background: #da3c41;
}
.cp_pricetable3 .cp_btn:after {
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
width: 100%;
height: 0;
content: '';
transition: 0.3s;
-webkit-transform: translate(-50%,-50%) rotate(45deg);
transform: translate(-50%,-50%) rotate(45deg);
opacity: 0;
background: #ffffff;
}
.cp_pricetable3 .cp_btn:hover {
color: #da3c41;
}
.cp_pricetable3 .cp_btn:hover:after {
height: 250%;
opacity: 1;
}
.cp_pricetable3 .cp_btn:active:after {
height: 350%;
opacity: 1;
}