24 January 2009

tutorial : Membuat comment box yang comel..! *new version

ok, Soofiyah sengaja nak pakai older post... hehe

ok, tahu tak comment box macam mana?
macam ni..


Comel tak?
cakap comel juga.. haha

1. dashboard > design > Edit HTML > tck expand widget
2. cari kod ni denganctrl+f

/* comment
Ok, dah jumpa?
kalau dah.. dekat bawah tu korang akan jumpa kod lebih kurang macam ni..

#comments h4 {
margin: 1em 0;
color: #999999;
}
#comments h4 strong {
font-size: 110%;
}
#comments-block {
margin: 1em 0 1.5em;
line-height: 1.3em;
}
#comments-block dt {
margin: .5em 0;
}
#comments-block dd {
margin: .25em 0 0;
}
#comments-block dd.comment-footer {
margin: -.25em 0 2em;
line-height: 1.4em;
font-size: 78%;
}
#comments-block dd p {
margin: 0 0 .75em;
}

3. Tukarkan kod tu dengan kod yang ni

#comments h4 {
margin: 1em 3em;
font-weight: bold;
line-height: 1.4em;
}
#comments-block {
margin-left:1.5em;
line-height:1.6em;
background: #ffffff;
color: black;
padding: 1em;
border:0px solid #ffffff;
}
#comments-block .comment-author {margin:.5em 0;}
#comments-block .comment-body {margin:.25em 0 0; background: #ffffff;}
#comments-block .comment-footer {
margin:-.25em 0 2em;
line-height: 1.4em;
letter-spacing:.1em;
}
#comments-block .comment-body p {
margin:0 0 .75em;
padding: 20px 10px 10px 10px;
background: #f3a64c url(URL IMAGE) repeat top left;
-moz-border-radius: 25px 25px / 25px 25px;
border-radius: 5px 5px / 5px 5px;
Border: 1px solid #F5A9A9;
}



URL IMAGE => letak warna yang korang suka

Dah? ok..

1 comment:

Awak comment saya sayang.. =)