Cara Menyembunyikan Scroll Bar Dengan CSS

Salam sukses selalu buat sobat semua, Belajar Komputer Melalui Internet saat ini akan sedikit membahas tentang Cara Menyembunyikan Scroll Bar Dengan CSS dan semoga artikel ini bermanfaat.



Cara Menyembunyikan Scroll Bar Dengan CSSCara Menyembunyikan Scroll Bar Dengan CSS, mungkin sobat sudah pada tau scroll bar dan sudah menggunakannya dan mungkin juga sobat sudah menggunakan scroll bar yang disembunyikan namun masih mempertahankan fungsinya. Pada kesempatan ini saya akan berbagi tutorial cara menyembunyikan scroll bar dengan CSS buat sobat yang belum menggunakan fungsi ini.
Pada prinsip kerjanya menyembunyikan scroll dengan CSS ini hanya menyembunyikan obyek yang menggunakan scroll sehingga scroll bar tersebut tidak kelihatan, adapun caranya yaitu dengan menambahkan kerangka atau wadah untuk menyimpan obyek tersebut yang ukuran lebarnya dikurangi ukuran scrollbar atu dengan memberikan margin kiri selebar scroll bar. lihat gambar disamping.

Adapun cara tersebut bisa menggunakan 2 cara yang biasa saya lakukan, yaitu dengan menggunakan CSS dan HTML yang terpisah atau dengan penambahan kode CSS langsung pada HTML. 
untuk cara pemasangan menggunakan CSS dan HTML yang terpisah bisa lihat contoh dibawah ini.

KODE CSS.
Ini bisa diletakan diatas kode  ]]></b:skin> atau apabila setelah kode ]]></b:skin> dengan menambahkan kode <style type='text/css'> CSS disini </style>.
#scroll-hide{
  width:100px;
  overflow:hidden;
  background:#000;
}
#scroll-hide .inner{
  width:80px;
  height:200px;
  overflow:auto;
  margin:20px;
  padding-right:20px;
  background:#404040;
}

KODE HTML.
Pada kode HTML sobat tinggal memasukan tag id atau class
<div id="scroll-hide">
<div class="inner">
Konten Disini
</div>
</div>

Lihat Contoh dibawah ini:

Jakarta
Karawang
Bandung
Bekasi
Cianjur
Sukabumi
Sumedang
Cirebon
Tasikmalaya
Garut
Ciamis
Subang
Kuningan
Majalengka
Banjar

Jakarta
Karawang
Bandung
Bekasi
Cianjur
Sukabumi
Sumedang
Cirebon
Tasikmalaya
Garut
Ciamis
Subang
Kuningan
Majalengka
Banjar
Jakarta
Karawang
Bandung
Bekasi
Cianjur
Sukabumi
Sumedang
Cirebon
Tasikmalaya
Garut
Ciamis
Subang
Kuningan
Majalengka
Banjar

Pada contoh pertama scroll belum disembunyikan atau masih secara default.
Pada contoh kedua itu merupakan ilustrasi scroll bar yang disembunyikan.(obyek diberi warna background berbeda, lihat kode background:#404040; pada CSS)

pada contoh ketiga kode  background :#404040; pada CSS dihilangkan.

Apabila mau memasang pada widget di sidebar maka sobat tinggal cari kode <div class='widget-content'> pada setiap kode widget. selanjutnya tinggal mengganti kode tersebut dengan.
<div class='widget-content' id='scroll-hide'>
<div class='inner'> 
-------
</div>
</div>

Contoh:
<b:widget id='HTML5' locked='false' title='title' type='HTML'>
<b:includable id='main'>
  <!-- only display title if it's non-empty -->
  <b:if cond='data:title != &quot;&quot;'>
    <h2 class='title'><data:title/></h2>
  </b:if>
<div class='widget-content' id='scroll-hide'> 
<div class='inner'>
    <data:content/>
</div>
</div>
</b:includable>
</b:widget>

Selanjutnya cara menyembunyikan scroll bar secara langsung pada HTML, khususnya pada widget di sidebar namun cara selengkapnya tunggu ya pada postingan berikutnya.... biar lebih lengkap karena meletakan kode untuk menyembunyikan scroll bar pada sidebar tergantung pada widget yang digunakan sehingga perlu penjelasan satu-satu.

Buat Sobat yang mau mencoba mengedit sendiri kode CSSnya silahkan kunjungi di SINI

Mungkin sampai disini dulu Belajar Komputer Melalui Internet tentang Cara Menyembunyikan Scroll Bar Dengan CSS kali ini, semoga bermanfaat bagi Anda.

DAPATKAN ARTIKEL VIA EMAIL

Masukan Alamat Email Sobat:

Delivered
feedburner

Dipublish oleh : Abdul Kohar - Jatinangor Rating 5 Belajar Komputer Melalui Internet, Updated at: 12:31

47 komentar :

  1. ternyata bisa ya,scroll bar disembunyikan dan fungsinya masih tetap ada.
    info yg bermanfaat,mksh infonya sob

    BalasHapus
  2. pasang aja begini

    overflow-y:hidden;
    overflow-z:hidden;

    di body{

    selesai haha

    BalasHapus
    Balasan
    1. itu sih memang nyembunyiin tapi scrollnyapun ga berfungsi bahkan scroll di browser mozilla juga hilang sekaligus ga berfungsi hehehehe....

      Hapus
  3. sy mau nanya gmn caranya isi elemen/body masuk keadalam klo scroll dikebawahin sprti website ini klo scroll dikebawahin akan masuk kdalam menu hompage...hihihihi

    BalasHapus
  4. http://azzam10.blogspot.com/2012/09/cara-menyembunyikan-scroll-bar-dengan-css.html

    BalasHapus
  5. [mcafee.com/activate - Find your 25-digit alphanumeric product key in the activation section. Follow the steps for downloading, installing and activating McAfee setup from www.mcafee.com/activate.]
    [Setup your Norotn Antivirus with help from our hero's vist and install norton.com/setup.]
    [Coinbase is the world's largest Bitcoin exchange, so this is a common question. .... You must also keep your Coinbase login and account password safe.]
    [How to Setup Office. Go to office.com/setup and enter your product key. If you have a previous version of Office or existing Microsoft account, enter your email address and password, and click Sign in. Select the Country/Region and Language, and click Continue. On the www.office.com/myaccount page, select Install.]

    BalasHapus
  6. Thank you so much for sharing these amazing tips. I must say you are an incredible writer, I love the way that you describe the things. Please keep sharing.

    For more information visit on : mcafee.com/activate | mcafee.com/activate

    BalasHapus
  7. This is really very informative and helpful post, I really want to tell you thanks for this. And also to purchase antivirus for your system please visit this website.
    mcafee.com/activate

    BalasHapus
  8. Simply put, it is the subscription based virtual office which doesn't depend only on Microsoft Office software package as it offers more dynamic features like OneDrive, Skype, Yammer, etc. office 365

    BalasHapus
  9. Norton antivirus provides end to end protection to the Windows, Macs, iPhone, Android with the high-level security. Protection from spam and sensitive information theft is also offered by this widely famous and popular antivirus brand. It is lightweight and runs in the background without hindering the user’s work or slowing down the computer. The Norton setup process consists of download, installation, and activation. First, the users have to sign in at norton.com/setup
    How to Fix 0xc1900223 Windows Update Error on Windows 10?

    norton.com/setup

    BalasHapus
  10. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man,Keep it up.
    mcafee.com/activate
    mcafee.com/activate
    mcafee.com/activate
    mcafee.com/activate

    BalasHapus
  11. Let’s activate xfinity.com/authorize it is an official website that helps the users to activate www.xfinity.com/authorize and get full access to the best plans online for the internet, videos, mobile services too.

    BalasHapus
  12. You need to redeem the office 2013 product key before you can begin downloading the software on your device. For this, visit the office setup and select ‘redeem product key.

    BalasHapus
  13. It is also a nice information how we can hide scroll bar & there is great information available here.

    BalasHapus
  14. Nice post. I was checking constantly this blog and I am impressed! Very helpful info specially CSS CODE.Thanks for your support.

    BalasHapus
  15. I love the design and design of your site.
    Summer is very easy on the eyes, which makes it much more comfortable for me to come here from so many times.
    Have you ever hired a stylist to design your theme? Works extraordinarily!
    window product key
    outbyte pc repair crack
    icecream screen recorder crack
    avast premier crack license key

    BalasHapus
  16. Amazing work done. Nice website, Love it. Great website.
    ij.start.cannon

    BalasHapus
  17. Oh, the horror! Dude, it was a fantastic piece! Thank you, however I'm having trouble with your RSS feed.
    I'm not sure why I'm not able to subscribe to it.
    Is there anyone else having RSS issues? Could anyone who knows the answer please respond?
    Thanx!!
    clip studio paint pro crack
    bandicut crack
    driverfinder pro crack
    rhinoceros crack

    BalasHapus
  18. This is very useful software for you and me. No errors were found during the check.
    You can use it. I hope you like it.
    avg pc tuneup crack
    anytrans crack
    cubase pro crack

    BalasHapus
  19. We hope that on top of mentioned steps assist you to repair the gmail not receiving emails issue. If any technical issue remains, you'll be able to get in reality with our technical consultants for any help and support.

    BalasHapus
  20. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named ProCrackHere
    Window 12 Pro Crack
    Window 12 Activator Crack

    BalasHapus
  21. In your own pc, proceed to a Google Play account. Under'Payment methods', visit your balance.googe play redeem code
    amazon code
    amazon.com/code
    paypal login
    amazon.com/code

    BalasHapus
Silahkan Tinggalkan jejak sobat, bila mau menggunakan emotion silahkan klik emotionnya kemudian copy dengan ctrl+c dan paste kodenya didalam kotak komentar...

close
GUESTBOOK
Google PageRank Checker Powered by  MyPagerank.Net
backlink
Dashboard
| Copyright © 2012 |
| Belajar Komputer Melalui Internet |
| Desain by: Abdul Kohar | Powered by: Blogger |