MASIGNCLEAN101

Membuat Tabel Sederhana di Blogger

Sebelumnya sudah banyak Blog tetangga yang memposting cara membuat tabel di Blog. Kebanyakan yang saya temui, rata-rata menggunakan media Microsoft Word/Excel. Nah kali ini saya akan berbagi bagaimana cara membuat tabel seperti Microsoft Office/Excel yang sederhana.

Memasang Tabel di Blog

1. Seperti biasa, login Blogger.
2. Tempat peletakkannya:
  • Untuk di Sidebar, silahkan ke Tata Letak, Add Widget.
  • Untuk di postingan, silahkan letakkan code nya di HTML (bukan compose).
3. Copy-paste code berikut:
<style type="text/css">
table {
    *border-collapse: collapse; /* IE7 and lower */
    border-spacing: 0;
    width: 100%; 
}
.bordered {
    border: solid #ccc 1px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 1px 1px #ccc;
    -moz-box-shadow: 0 1px 1px #ccc;
    box-shadow: 0 1px 1px #ccc;     
}
.bordered tr:hover {
    background: #93F193;
    -o-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out; 
} 
.bordered td, .bordered th {
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding: 10px;
    text-align: left; 
}
.bordered th {
    background-color: #dce9f9;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
    background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image: -moz-linear-gradient(top, #ebf3fc, #88F188);
    background-image: -ms-linear-gradient(top, #ebf3fc, #08630E);
    background-image: -o-linear-gradient(top, #ebf3fc, #08630E);
    background-image: linear-gradient(top, #ebf3fc, #08630E);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;     
    border-top: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.bordered td:first-child, .bordered th:first-child {
    border-left: none;
}
.bordered th:first-child {
    -moz-border-radius: 6px 0 0 0;
    -webkit-border-radius: 6px 0 0 0;
    border-radius: 6px 0 0 0;
}
.bordered th:last-child {
    -moz-border-radius: 0 6px 0 0;
    -webkit-border-radius: 0 6px 0 0;
    border-radius: 0 6px 0 0;
}
.bordered th:only-child{
    -moz-border-radius: 6px 6px 0 0;
    -webkit-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
}
.bordered tr:last-child td:first-child {
    -moz-border-radius: 0 0 0 6px;
    -webkit-border-radius: 0 0 0 6px;
    border-radius: 0 0 0 6px;
}
.bordered tr:last-child td:last-child {
    -moz-border-radius: 0 0 6px 0;
    -webkit-border-radius: 0 0 6px 0;
    border-radius: 0 0 6px 0;
}
</style>
<table class="bordered">
<thead><tr>
<th> Judul 1 </th><th> Judul 2 </th><th> Judul 3 </th></tr></thead><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr><tr>
<td> ISI 1 </td><td> ISI 2 </td><td> ISI 3 </td></tr>
</table>
  • Edit JUDUL 1/2/3 sesuai judul tebel Anda.
  • Edit ISI 1/2/3 sesuai isi tabel Anda.
Anda bisa menambahkan isi atau menguranginya dan Anda dapat mengganti warnanya di sini.
4. Publish.
Share This :
Unknown