Cara Menciptakan Kotak Scrollbar Di Postingan Blog

Apa bekerjsama Scrollbar? kalau Anda melihat sebuah blog terutama yang menyajikan sebuah arahan HTML tertentu dimana biasanya arahan HTML tulisannya terlalu panjang, untuk mempersingkat ruang di dalam goresan pena dipersingkat dengan sebuah kotak yang sanggup meringkas tulisan. Makara sanggup diartikan Scrollbar yaitu sebuah hidangan untuk meringkas goresan pena panjang dalam sebuah kotak yang sanggup di scrooll untuk menampilkan isi keseluruhan sebuah tulisan.



Ada banyak jenis scroolbar yang umumnya dipakai untuk meringkas sebuah tulisan, secara umum dibagi menjadi tiga yaitu scroll horisontal, scroll vertikal dan scrool campuran vertikal dan horisontal. Berikut ini cara menciptakan scrool secara lengkap

Scrollbar Horisontal 
Scrooll horisontal artinya goresan pena di ringkas dalam bentuk memanjang, untuk menciptakan scroll horisontal gunakan arahan yang tertera dibawah ini.

<div style="border:1px solid black;width:auto ;height:50px;overflow-y:hidden;overflow-x:scroll;">
<p style="width:2500%;">
MASUKKAN TULISAN ANDA DISINI
</p>
</div>
Keterangan
Border  = Ukuran garis tepi srcoll
Solid     = Warna garis tepi scroll
Height   = Tinggi scrool,
Width:2500% = Ukuran panjang scroll yang dipakai untuk mengeser Scroll
Width  = Lebar kotak scroll, Anda sanggup merubah ukuran lebar menjadi auto supaya otomatis sesuai dengan ukuran lebar postingan.


Untuk arahan berikutnya gunakan cara yang sama untuk merubah warna, ukuran lebar, tinggi. Hasil Scroll dengan arahan HTML diatas yaitu menyerupai dibawah ini.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.


Scrollbar Vertikal Tipe 1
Scrooll vertiakal artinya goresan pena di ringkas dalam bentuk memanjang dari atas kebawah, untuk menciptakan scroll vertikal gunakan arahan yang tertera dibawah ini.


<div style="background-color: #f0f0f0; border: 1px solid #1E90FF; height: 50px; overflow: auto; padding: 5px; width: auto;">
MASUKKAN TULISAN ANDA DISINI
</div>
Hasil Scroll dengan arahan HTML diatas yaitu menyerupai dibawah ini.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.


Scrollbar Vertikal Dan Horisontal
Scrooll vertiakal dan Horistonal artinya goresan pena di ringkas dalam bentuk memanjang dari atas kebawah serta kekiri dan kanan, untuk menciptakan scroll vertikal, horisontal gunakan arahan yang tertera dibawah ini.
<div style="border:1px solid red;width:auto;height:50px;overflow-y:scroll;overflow-x:scroll;">
<p style="width:2500%;">
MASUKKAN TULISAN ANDA DISINI
</p>
</div>
Hasil Scroll dengan arahan HTML diatas yaitu menyerupai dibawah ini.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow. 


Scrollbar Vertikal Tipe 2
Scrooll vertiakal artinya goresan pena di ringkas dalam bentuk memanjang dari atas kebawah, namun untuk arahan HTMlL yang dipakai dalam arahan ini sedikit berbeda. untuk menciptakan scroll vertikal gunakan arahan yang tertera dibawah ini.
<div style="border: 1px solid green; height: 80px; overflow-x: hidden; overflow-y: scroll; width: auto;">
<p style="width:250%;">
MASUKKAN TULISAN ANDA DISINI
</p>
</div>
Hasil Scroll dengan arahan HTML diatas yaitu menyerupai dibawah ini.
By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow. By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow. By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow. By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow. By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 250 percent, it is 250 percent wider than the parent container - forcing an overflow.

Untuk memakai arahan ini masuk ke hidangan posting di blog Anda, selanjtnya pilih hidangan HTML yang berada di compos, selanjutnya masukkan atau copy paste arahan diatas sesuai dengan scrollbar yang diinginkan. Selesai dicopy masuk ke hidangan Compos, hapus tulisan MASUKKAN TULISAN ANDA DISINI dengan goresan pena atau arahan HTML yang ingin Anda buat.

Simpel dan gampang kalau Anda mengalamai kesulitan silahkan olok-olokan pertanyaan dikolom komentar. Selamat mencoba. 

0 Response to "Cara Menciptakan Kotak Scrollbar Di Postingan Blog"

Post a Comment

loading...
loading...

Iklan Tengah Artikel 2

Iklan Bawah Artikel