judul
Isi baris 1 kolom 1
Isi baris 1 kolom 1
Isi baris 1 kolom 2
Isi baris 1 kolom 3
Isi baris 1 kolom 4
<div class="divTable">
<div style="text-align: center;">judul</div>
<div class="divjudul" style="text-align: center;">
Isi baris 1 kolom 1
</div>
<div class="divTableRow" style="text-align: center;">
<div class="divTableCell">
Isi baris 1 kolom 1</div>
<div class="divTableC">
Isi baris 1 kolom 2</div>
<div class="divTableCell">
Isi baris 1 kolom 3</div>
<div class="divTableC">
Isi baris 1 kolom 4</div>
</div>
</div>
Selanjutnya buat style CSS nya,
<style>
.divTable {
width: 100%;
display: table;
-webkit-box-shadow: 0;
box-shadow: 0;
}
.divTableRow,
.divjudul {
width: 100%;
height: 100%;
display: table-row;
}
.divTableCell {
padding:5px;
width: 25%;
height: 100%;
display: table-cell;
border: 0;
}
.divTable .divTableCell:nth-child(odd) {
background-color: #aad4ff;
}
.divTable .divTableC:nth-child(odd) {
background-color: #bae4ff;
}
.divTable .divTableCell:hover {
background-color: #FBEDBB;
}
.divTable .divTableC:hover {
background-color: #FBEDBB;
}
</style>
Posting Komentar