Dah lama tak buat tuto kan ? So yah now I'm going to show you how to centerkan widget dekat sidebar blog kita. Contoh korang nak ketak code fanpage or twitter or whatever. Kalau korang terus letak terus , widget tu akan ke tepi and agak buruk dan pelik. So follow this tuto untuk centerkan widget.
1. You just grab any code, I contoh sini code Twitter button k ? Apa apa code widget pun boleh. After u grab the code, paste dekat HTML Java/Script.
2. Tambah <center> di awal code.
3. Tambah <center/> di akhir code. Faham tak ?
Dah siap nanti dia jadi macam dekat bawah ni rupa dia. Preview code :
<center><a class="twitter-timeline" href="https://twitter.com/allyafendi" data-widget-id="281339272919908352">Tweets by @allyafendi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script><center/>
4. Save :)
No comments:
Post a Comment
Kalau dah jadi tu commentlah sikit sikit . Sebaris kata pun boleh. Asal jangan harsh words thank you :D