blog yang berisi tentang berita lukisan dan tutorial blogger

Cara memasang widget Label Cloud dengan CSS

Label Warna

Masih dengan pembahasan maslah widget, setelah sebelumnnya membahas tentang membuat Daftar Isi dinamis dengan JQUERY, Kalin ini saya akan membahas tentang widget Label dengan tampilan berwarna dengan CSS. Untuk pemasangannya silahkan ikuti caranya di bawah:

Sobat login ke Blogger
Pilih template >> Edit HTML
Lalu pasang CSS di bawah tepat di atas ]]></b:skin> ataupun </style>
<!-- css ui label color by db --> .sidebar .label-size { position:relative; text-transform: uppercase; text-decoration:none; font-size:11px; font-family:Oswald, Arial, Sans-Serif; color:#fff!important; } .sidebar .label-size a { color:#fff!important; font-weight:300; padding:8px 10px; margin:0 6px 6px 0; float:left; display:block; -moz-transition: all 0.4s ; -o-transition: all 0.4s; -webkit-transition: all 0.4s ; -ms-transition: all 0.4s ; transition: all 0.4s ; } .sidebar .label-size-1 a {background:#1abc9c;border-bottom:3px solid #127F69;} .sidebar .label-size-1 a:hover {background:#16a085;} .sidebar .label-size-2 a {background:#3498db;border-bottom:3px solid #226693;} .sidebar .label-size-2 a:hover {background:#2980b9;} .sidebar .label-size-3 a {background:#2ecc71;border-bottom:3px solid #1F8C4C;} .sidebar .label-size-3 a:hover {background:#27ae60} .sidebar .label-size-4 a {background:#9b59b6;border-bottom:3px solid #74398E;} .sidebar .label-size-4 a:hover {background:#8e44ad} .sidebar .label-size-5 a {background:#e74c3c;border-bottom:3px solid #922C20;} .sidebar .label-size-5 a:hover {background:#c0392b}
Kode diatas adalah CSS bilamana di blog sobat terdapat sedikit label, dan bila di blog sobat terdapat banyak Label di bawah ini CSS nya.
<!-- css ui label color by db --> .cloud-label-widget-content {text-align: left;} .label-size {background: #5498C9;display: block;float: left;margin: 0 3px 3px 0;color: #fff;font-family: Oswald, Arial, Sans-Serif;font-size: 11px;text-transform: uppercase;} .label-size:nth-child(1) {background: #F53477;} .label-size:nth-child(2) {background: #89C237;} .label-size:nth-child(3) {background: #44CCF2;} .label-size:nth-child(4) {background: #01ACE2;} .label-size:nth-child(5) {background: #94368E;} .label-size:nth-child(6) {background: #A51A5D;} .label-size:nth-child(7) {background: #555;} .label-size:nth-child(8) {background: #f2a261;} .label-size:nth-child(9) {background: #00ff80;} .label-size:nth-child(10) {background: #b8870b;} .label-size:nth-child(11) {background: #99cc33;} .label-size:nth-child(12) {background: #ffff00;} .label-size:nth-child(13) {background: #40dece;} .label-size:nth-child(14) {background: #ff6347;} .label-size:nth-child(15) {background: #f0e68d;} .label-size:nth-child(16) {background: #7fffd2;} .label-size:nth-child(17) {background: #7a68ed;} .label-size:nth-child(18) {background: #ff1491;} .label-size:nth-child(19) {background: #698c23;} .label-size:nth-child(20) {background: #00ff00;} .label-size a, .label-size span { display: inline-block; color: #fff !important; padding: 4px 10px; font-weight: bold; } .label-size:hover { background: #222; } .label-count { white-space: nowrap; padding-right: 3px; margin-left: -3px; background: #333; color: #fff ; } .label-size:hover .label-count, .label-size:focus+.label-count { background-color: #ff6bb5; }
Terakhir simpan Template

Jangan lupa settingan di Tata Letaknya harus Cloud jangan Lish

sumber: Dafin Defandaky
Adsense Bawah

0 komentar




Klik untuk melihat kode: :) =( :s :D :-D ^:D ^o^ 7:( :Q :p T_T @@, :-a :W *fck* x@

Cancel Reply
TOP