Tutorial Membuat Tabs CSS Mudah dengan Bootstrap

Membuat Tabs dengan Bootstrap

Membuat tabs css dengan menggunakan Bootstrap 3 sangat mudah dan sederhana. Bahkan anda tidak harus menyentuh kode CSS ataupun javascript karena secara otomatis Bootstrap sudah menyediakan fitur untuk membuat tabs. Anda hanya harus membuat markup htmlnya saja.

Sebenarnya, Bootstrap sudah menyediakan dokumentasi untuk membuat tabs css ini. Namun, berbahasa inggris dan sifatnya parsial. Nah, di posting ini saya akan memberikan tutorial paling mudah bagi anda yang tidak begitu paham mengikuti dokumentasi aslinya. Langsung saja, silahkan lihat kodenya :

<!DOCTYPE html>
<html>
<head>
<title>CSS Tabs Dengan Bootstrap 3</title><link rel=”stylesheet” href=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css”/>
<script type=”text/javascript” src=”https://code.jquery.com/jquery-1.11.1.min.js”></script>
<script src=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js”></script></head>
<body><div class=”container”>
<div class=”col-md-6″ style=”margin:100px auto;position:relative”><ul class=”nav nav-tabs” id=”myTab”>
<li class=”active”><a href=”#satu” data-toggle=”tab”>Tab 1</a></li>
<li><a href=”#dua” data-toggle=”tab”>Tab 2</a></li>
<li><a href=”#tiga” data-toggle=”tab”>Tab 3</a></li>
</ul><div class=”tab-content”>

<div class=”tab-pane fade in active” id=”satu“>Isi Tab 1 </br/>Vivamus suscipit tortor eget felis porttitor volutpat. Nulla quis lorem ut libero malesuada feugiat. Donec sollicitudin molestie malesuada. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum congue leo eget malesuada. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a.</div>live streaming film Independence Day: Resurgence online

<div class=”tab-pane” id=”dua“>Isi Tab 2 </br/>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Vivamus suscipit tortor eget felis porttitor volutpat. Curabitur aliquet quam id dui posuere blandit. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Proin eget tortor risus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Cras ultricies ligula sed magna dictum porta. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.</div>live streaming film Independence Day: Resurgence online

<div class=”tab-pane” id=”tiga“>Isi Tab 3 </br/>
Sed porttitor lectus nibh. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Proin eget tortor risus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>live streaming film Independence Day: Resurgence online

</div>live streaming film Independence Day: Resurgence online

</div>live streaming film Independence Day: Resurgence online
</div>live streaming film Independence Day: Resurgence online

</body>
</html>

Penjelasan :

1. Kode yang saya beri warna oren, adalah kode untuk memanggil file library css dan jquery bootstrap-nya. Saya menggunakan library-library dari source online supaya ketika anda mencopy kode diatas bisa langsung work (tapi harus online).

2. Kode yang berada diantara kode berwarna hijau tua, itulah markup html untuk tab anda.

3. Kode yang berwarna merah merupakan menu tabnya. Markupnya sudah baku. Anda tidak bisa merubahnya lagi.

4. Kode yang berwarna biru, artinya harus sama. Namun, nilainya bisa anda ganti. Misal, anda bisa mengganti #satu menjadi #hiji. Namun anda juga harus mengganti satu yang berada di tab-content menjadi hiji.

Itu saja penjelasan yang bisa saya jelaskan. Jujur, saya sedikit sulit menjelaskannya, Jadi harap maklum kalau mungkin anda belum sepenuhnya ngerti 😀 hehe. Jika ingin langsung paham, tentu saja langsung praktekkan. Caranya : Copy kode diatas > paste di notepad > “Save as” file berformat .html > Lalu, jalankan (klik 2 kali).

Semoga bermanfaat 🙂

~Muhammad Syakirurohman~

cialis without a doctor’s prescription acyclovir 400 mg azithromycin tablet ciprofloxacin dose order viagra lexapro bula ciprofloxacin side effects in women levitra without a doctor prescription lexapro para que sirve cialis 5mg viagra canada ciprofloxacin eye drops lexapro and wellbutrin combination therapy common side effects of ciprofloxacin 500 mg 9 levitra at walmart ciprofloxacin 500mg tablets viagra prices what is ciprofloxacin viagra activate viagra for men how to get off lexapro what is lexapro used for acyclovir 800 mg for shingles cialis canadian pharmacy levitra erfahrungen first few days on lexapro acyclovir 800 mg lexapro manufacturer website cialis online lexapro withdrawal symptoms levitra 20 mg von bayer what is finasteride used for azithromycine viagra medicine cipro side effects in elderly what does viagra do ciprofloxacin 500 mg wellbutrin and lexapro lexapro weight gain cialis 20 mg withdrawal from lexapro finasteride long term effects cialis pharmacy prices cialis vs viagra viagra receptfritt azithromycin tablets lexapro generic name generic viagra side effects of ciprofloxacin 500 mg viagra coupon ciprofloxacin spc lexapro and weight gain lexapro side effects in women does lexapro cause weight gain finasteride side effects side effects lexapro cialis cheap cipro dosage side effects of lexapro 10 mg cialis copay card acyclovir 800mg cialis coupon print azithromycin 250 mg treatment cealis acyclovir for shingles what is cipro what is acyclovir for cyalis acyclovir for cold sores buy levitra generic levitra ciprofloxacin drops azithromycin cost what is tamoxifen used for over the counter viagra zithromax antibiotic finasteride 5mg cialis for bph ciprofloxacin 500 mg tabletten viagra without a doctor prescription usa what is finasteride nolvadex is ciprofloxacin a penicillin what is azithromycin used for price cialis generic for cialis viagra generico viagra bestellen what does azithromycin treat lexapro vs wellbutrin discount viagra acyclovir dosage for cold sores tamoxifen side effects acyclovir 200mg cialis for men lexapro side effects in men cheap viagra buying viagra cialis for sale cialis trial what bacteria does ciprofloxacin kill levitra 20mg viagra pills acyclovir sex viagra for women ciprofloxacin hcl tamoxifen and foods to avoid tamoxifen ciprofloxacin hydrochloride zovirax dosage finasteride side effects in men tamoxifen nebenwirkungen viagra lowest cialis prices viagra uk what is ciprofloxacin prescribed for ciprofloxacin class viagra cost viamedic cialis viagra alternative azithromycin 5 day dose pack levitra female viagra levitra generic zovirax ointment viagra sans ordonnance side effects of azithromycin viagra wikipedia viagra cialis cialis cost levitra coupons ciprofloxacin dosage acyclovir ointment ciprofloxacin side effects zovirax cream is azithromycin penicillin revatio vs viagra viagra costs escitalopram side effects viagra vs cialis vs levitra daily cialis ciprofloxacin bnf side effects of azithromycin 250 mg natural viagra cialis on line tamoxifen cost finasteride 5 mg tab free cialis levitra rezeptfrei deutschland generic viagra 100mg what is tamoxifen azithromycin for pneumonia cipro uses viagra 100mg ciprofloxacin used for what works better than viagra cialis voucher ciprofloxacin drug class cialis website viagra for sale uk thuoc azithromycin finasteride dosage celexa vs lexapro cipro viagra ohne rezept aus deutschland what is escitalopram cialis price cipro side effects how long for azithromycin to take effect viagra vs cialis cialis prices erectile dysfunction cialis how long does viagra last cialis 5mg daily buy generic viagra ciprofloxacin nebenwirkungen levitra online ciprofloxacin 500 mg for urinary tract infection lexapro and weight loss cialis testimonials cipro antibiotics cialis patent expiration date extended zovirax for cold sores ciprofloxacin ophthalmic solution azithromycin 250 mg buy viagra online tamoxifen and weight gain how does acyclovir work cialis tadalafil finasteride and enlarged prostate lexapro overdose buy cialis zoloft vs lexapro acyclovir dosing what is azithromycin canadian cialis cheap levitra finasteride permanent side effects buy viagra herbal viagra cialis vs viagra azithromycin eye drops ciprofloxacin 250mg cialis medication levitra vs viagra for hardness ciprofloxacin coverage stopping lexapro viagra en ligne livraison 24h levitra vs viagra levitra prezzo in farmacia cialis 20mg acyclovir 800 mg 5 times a day finasteride results buy levitra online post finasteride syndrome pfizer viagra how to take cialis viagra 100mg tablets retail price cipro antibiotic cipro dangers what is lexapro cialis coupon 20 mg lexapro 10 mg finasteride efectos secundarios viagra for sale azithromycin pregnancy lexapro reviews azithromycin coverage zovirax viagra vs cialis levitra bayer 20mg meilleur prix viagra generic tamoxifen citrate viagra from canada ciprofloxacin hcl 500 mg side effects cipro 500 ciprofloxacin uses azithromycin for uti lexapro side effects of cialis how long for lexapro to work lexapro 10mg zithromax 500 mg viagra kaufen levitra 20 mg cost walmart what does finasteride do escitalopram 10 mg para que sirve cialis side effects finasteride reviews lexapro 20mg finasteride 5mg side effects azithromycin side effects canada viagra levitra 20 mg generic cialis at walmart cialis professional cialis daily viagra sex ciprofloxacin 250 mg acyclovir dosage tamoxifen bijwerkingen what is acyclovir sophia viagra viagra for women levitra vs viagra azithromycin dosage lexapro vs zoloft azithromycin drug class azithromycin liquid cialas what is cipro used for cialis otc side effects of lexapro in women effects of stopping finasteride acyclovir 400mg escitalopram 10mg escitalopram oxalate generic cialis tadalafil cheap cialis acyclovir side effects azithromycin medscape tamoxifen langzeitfolgen cialis pills for sale levitra dosage zovirax pills cialis reviews acyclovir vs valacyclovir levitra 20mg cost per pill generic cialis side effects of tamoxifen vardenafil vs viagra viagra substitute side effects of finasteride viagra without a doctor prescription cialis samples overnight ciprofloxacin 500mg antibiotics side effects buy generic levitra azithromycin 500 liquid cialis lexapro dosages cialis patent expiration how much does cialis cost cipro and tendonitis cialis coupons from manufacturer finasteride for hair loss azithromycin cialis coupons viagra tablet lexapro 5mg escitalopram cialis samples cialis alternative azithromycin pediatric dosing azithromycin pregnancy category viagra ohne rezept auf rechnung lexapro vs celexa tamoxifen side effects in women over 55 how does lexapro work lexapro and weight gain in women zithromax cilias is lexapro a controlled substance cialis pills levitra coupon finasteride tablets how to use viagra discount cialis propecia side effects canadian viagra escitalopram 20 mg finasteride 5mg tab where to buy viagra azithromycin 250mg what is azithromycin for how to wean off lexapro finasteride effets secondaires tamoxifen lawsuits viagra natural ciprofloxacin dosierung acyclovir cream viagra coupons side effects of viagra lexapro coupons azithromycin without a doctor’s prescription levitra 20 mg precio farmacia wholesale cialis escitalopram nebenwirkungen zithromax z-pak utilisation viagra what does ciprofloxacin 500mg treat azithromycin uses cialis pricing azithromycin 500 mg cialis generic lexapro side effects men viagra effects best price viagra cialis patent expiration 2017 cialis effects 200 cialis coupon tamoxifen side effects in women ciprofloxacin hcl 500 mg finasteride 1mg cost of viagra propecia generic for lexapro equipe argentine viagra azithromycin three times a week finasteride 5 mg free viagra how does viagra work buy cialis online cialis dosage strengths finasteride viagra side effects what is ciprofloxacin used for viagra 100 mg women viagra cialis coupons printable viagra price viagra 100 ciprofloxacin for dogs azithromycin 500 erfahrungen cialis 20mg directions antibiotic ciprofloxacin viagra wiki cialis generic tadalafil azithromycine 250 mg generic levitra vardenafil 20mg cialis 30 day sample finasteride 5mg side effects mayo clinic finasteride hair loss side effects of ciprofloxacin viagra pillen kruidvat escitalopram 10 mg cialis from canada cost of cialis tamoxifen therapy viagra pill what is lexapro for finasteride vs dutasteride ciprofloxacin 500 cipro drug class cipro for uti azithromycine eg 500 mg bijsluiter side effects of acyclovir azithromycin 250mg tablets 6 pack what infections does ciprofloxacin treat cialis coupons 2017 azithromycin class levitra prices cialis canada cialis 30 day trial coupon is azithromycin online viagra what does ciprofloxacin treat what is cialis canada cialis tamoxifen and bone pain tamoxifen interaction weaning off lexapro what is cipro usually prescribed for lexapro side effects cialis generic availability acyclovir dose ciprofloxacin hcl 500 mg tab generic lexapro cialis for daily use azithromycin 250 finasteride for women viagra on line no prec lexapro dosage lexapro generic cialis coupon cialis what is viagra cialis sample azithromycin vs erythromycin azithromycin 500mg viagra dosage side effects of finasteride 5mg viagra tablets viagra soft viagra single packs viagra tesco what is acyclovir used for viagra samples finasteride medication lexapro dosing lexapro for anxiety azithromycin and alcohol pfizer viagra coupons from pfizer ciprofloxacin 500mg antibiotics azithromycin z pak ciprofloxacin hydrochloride ophthalmic cialis 10 mg acyclovir medication how does cialis work ciprofloxacin side effects after age 60 cialis dosage cialis discount cialis 5 mg is tamoxifen chemotherapy escitalopram effets secondaires side effects of lexapro zithromax dosage ciprofloxacin 500mg cialis savings card cialis for women cialis dosage recommendations cialis free trial when will cialis go generic lexapro benefits for women effects of stopping lexapro suddenly ciprofloxacin viagra alternatives lexapro medication viagra 50mg azithromycin for strep throat acyclovir ointment 5 how to wean off lexapro without withdrawals cialis or viagra viagra online online cialis vardenafil 20mg lexapro withdrawal levitra 10 mg prezzo viagra on line viagra vs cialis vs levitra viagra nebenwirkungen

11 Comments

  1. terimakasih sangat membantu

  2. Ini kalo mau dibuat responsive gitu kira-kira bisa gak ya ?

  3. Gan Admin…
    kalo mau bikin di Blogger gimana caranya ya.

    (maaf kalo udah ada pertanyaan serupa sebelumnya.)

    Terima kasih atas jawabannyan

  4. Gan, mau nanya nih kalo mau buat sidebarnya gak gerak saat discrool kebawah, tapi kalo di scrool ke atas ikut juga naiknya, kayak yg diwebsite agan sekarang ini nih. bisa minta caranya gak gan?

Tinggalkan Balasan

Alamat surel Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *