Kebanyakan konten yang berposisikan absolute top right/left para kreator membuat untuk link berbagi ke web sosial. Sebagai contoh make something to be float & float and slide can be disappear pokoknya yg seperti itu lah :D
Lihat pojok kanan atas...
Demo
jsfiddle.net/bebenkoben/qnhLwm75/embedded/result
.side-tag {
content: '';
display: block;
clear: both;
height: 0;
*zoom: 1;
position: fixed;
top: 87px;
right: 0;
z-index: 100;
margin: 0;
}
.side-tag .taglist {
position: relative;
height: 50px;
min-width: 50px;
}
.side-tag .taglist:hover .side-contents, .side-tag .taglist.current .side-contents {
z-index: 100;
display: block;
}
.side-tag .btn-tag {
width: 50px;
height: 50px;
display: block;
vertical-align: middle;
position: absolute;
top: 0;
right: 0;
background: #ff9e36 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiOCZFDzu-YRV9Qb4k2A_xb4a90hLFKZ8cEpYXbufXC9Yi-8c858AIub5mvAY5K1jRZBvFrrxKJBj-PORsaB3CZHmawYVHDIm5UbUYtdut4ZVDFSu3YG08h_Cdt_E7QWadzCMBfVI6mUuj/s35/tag-icon.png) no-repeat center center;
}
.side-tag .side-contents {
background-color: #ff9e36;
width: 270px;
margin-right: 49px;
display: none;
overflow: hidden;
position: relative;
z-index: 10;
}
.side-tag .side-contents a {
text-decoration: none;
font-size: 17px;
color: #fff1e5;
}
.side-tag .side-contents h2 {
margin: 0 0 15px;
}
.side-tag .taglist .side-contents {
padding: 25px;
width: 220px;
color: #fff;
}
.side-tag .taglist ul li {
float: left;
font-size: 12px;
line-height: 28px;
margin-right: 10px;
}
content: '';
display: block;
clear: both;
height: 0;
*zoom: 1;
position: fixed;
top: 87px;
right: 0;
z-index: 100;
margin: 0;
}
.side-tag .taglist {
position: relative;
height: 50px;
min-width: 50px;
}
.side-tag .taglist:hover .side-contents, .side-tag .taglist.current .side-contents {
z-index: 100;
display: block;
}
.side-tag .btn-tag {
width: 50px;
height: 50px;
display: block;
vertical-align: middle;
position: absolute;
top: 0;
right: 0;
background: #ff9e36 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiOCZFDzu-YRV9Qb4k2A_xb4a90hLFKZ8cEpYXbufXC9Yi-8c858AIub5mvAY5K1jRZBvFrrxKJBj-PORsaB3CZHmawYVHDIm5UbUYtdut4ZVDFSu3YG08h_Cdt_E7QWadzCMBfVI6mUuj/s35/tag-icon.png) no-repeat center center;
}
.side-tag .side-contents {
background-color: #ff9e36;
width: 270px;
margin-right: 49px;
display: none;
overflow: hidden;
position: relative;
z-index: 10;
}
.side-tag .side-contents a {
text-decoration: none;
font-size: 17px;
color: #fff1e5;
}
.side-tag .side-contents h2 {
margin: 0 0 15px;
}
.side-tag .taglist .side-contents {
padding: 25px;
width: 220px;
color: #fff;
}
.side-tag .taglist ul li {
float: left;
font-size: 12px;
line-height: 28px;
margin-right: 10px;
}
Untuk penerapan markup HTML, sobat harus masuk ke dalam editor template blog. Press Ctrl + F kemudian cari kodeLabel1 saja!
<b:widget id='Label1 ' locked='false' title='Labels' type='Label'>
Kalau ribet coba dengan keyword Perhatikan struktur berikut!!!
<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<div class="side-tag">
<div class="taglist">
<a class="btn-tag"></a>
<div class="side-contents">
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div expr:class='"widget-content " + data: display + "-label-widget-content"'>
<b:if cond='data: display == "list"'>
--------- SCROLL KE BAWAH ----------
<b:include name='quickedit'/>
</div>
</div>
</div>
Yang sobat mesti lakukan memasukan taging berikut, sesuai dengan struktur diatas!<div class="side-tag">
<div class="taglist">
<a class="btn-tag"></a>
<div class="side-contents">
</div>
</div>
</div>
DONE.
Tidak ada komentar:
Posting Komentar