Sunday, July 11, 2010

Posisi "Widget" Di Tengah / Center Pada Header Atau Footer Blog

Adakalanya pada saat kita memasukan widget pada Header atau Footer Blog, posisi widget tersebut tidak berada ditengah-tengah / center. Untuk mengatasi hal tersebut, kita perlu menambahkan sedikit kode script kedalam widget tersebut.

Langkah-langkahnya adalah sebagai berikut:


1. Login ke Blogger.
2. Klik Tata Letak.
3. Klik Elemen Laman.
4. Klik Edit pada salah satu widget yang posisinya tidak berada ditengah-tengah Header atau Footer.

Contoh kode script widget yang belum ditambah:

<a href="http://www.copyscape.com/duplicate-content/"><img src="http://banners.copyscape.com/images/cs-gy-234x16.gif" alt="Protected by Copyscape Duplicate Content Tool" title="Protected by Copyscape Plagiarism Checker - Do not copy content from this page." width="234" height="16" border="0" /></a>

5. Tambahkan kode script dibawah ini:

<p style="margin-top:0px; margin-bottom:0; padding-bottom:0; text-align:center; line-height:0"> ................................................................................. </p>

Sehingga kode script-nya menjadi seperti ini:

<p style="margin-top:0px; margin-bottom:0; padding-bottom:0; text-align:center; line-height:0"><a href="http://www.copyscape.com/duplicate-content/"><img src="http://banners.copyscape.com/images/cs-gy-234x16.gif" alt="Protected by Copyscape Duplicate Content Tool" title="Protected by Copyscape Plagiarism Checker - Do not copy content from this page." width="234" height="16" border="0" /></a></p>

keterangan: kode script warna merah adalah kode script yang ditambahkan.

6. Klik SIMPAN.
7. Selesai.
Sumber

No comments: