Saturday 10 December 2011

Tuto #7 : Background pada title di sidebar


Cara meletakkan background pada title di sidebar

Hye! Okay, ni tutor buat background di sidebar. Kalau nak title di sidebar korang tu cantik try lah :)

1. pergi ke dashboard - design - edit html
2. tick pada expands widget templates
3. search code ny -

h2 {

4. kat bawah dia ada code ni kan -

margin: 1.6em 0 .5em; padding: 4px 5px; background-color: $sidebarTitleBgColor; font-size: 100%; color: $sidebarTitleTextColor;}

5. delete code no. 4 tadi dan gantikan dengan code ni -

    border:0px dashed #FFFFFF
    text-align: center;
    margin:.5em 0 .5em;
    padding:0 0 4px;
    font-size:100%;
    font-weight:normal;
    line-height:1.2em;
    background:url(URL BACKGROUND);
    color:$titlecolor;
    }

oren : tukar ikut kehendak korang okay
merah : boleh tuka samada dashed/solid
purple : tukar warna yang korang nak, code warna boleh cari di sini tekan tekan

6. preview dan save

kadi tak ? kalau tak jadi cepat-2 bagitau ya :)

semoga berjaya dan selamat mencuba :)

anak tenggiling tidur mati, komen/like-lah kalau baik hati :)

0 comments:

 
copyright@Si.y Arts 2010