Cara membuat 1 list menjadi 2 kolom itu sangat berguna apalagi bagi yang punya template 2 kolom dan lebih beruntung lagi kalo punya template 3 kolom jadi bisa
Langkah-langkahnya:
Catatan : warna hijau anda boleh menggantinya sesuai kebutuhan template/selera anda.
/* Kode Css List Two Kolom
------------------------------------------------------------------------------------------*/
#catl {
padding :5px 10px;
width : 91%;
background-color : #ffffdd;
border : 1px solid #ccc;
margin : auto;
}
#catl h3 {
display : block;
color : #669900;
padding-bottom : 5px;
margin-bottom : 5px;
border-bottom : 1px solid #666;font-size:14px;
}
/* style all the list items here */
#catl ul li {
height : 1em;
list-style-type : none;
color : #333;
padding : 0.3em 0 0.4em 0.25em;
font-size : 0.9em;
border-bottom : 1px solid #ccc;
text-indent:0px;
}
/* every second list item is positioned outward and moved up equal to LI height to even them */
#catl ul li.catl_l2 {
margin-left : 50%;
margin-top : -1.8em;
padding : 0.3em 0 0.4em 0.5em;
border : 0;
}
/* Every other two list items are styled with a background for usability and style */
.catl_alt {
background-color : #fffffc;
}
/* ini merupakan code hacking css untuk Ie 6*/
* html #catl ul li.catl_l2 {
margin-top : -2.3em;
}
Kemudian masukkan kode ini di dalamnya:
Satu List Dua Kolom
Catatan penting :
Jika ingin membuat linklist contohnya seperti ini.
jika ingin membuat list berupa link gambar seperti ini.
"catl">
0 komentar