Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vertical Tabs with JQuery?

I want tabs along the left side of the page instead of across the top. I'm already loading jQuery for other reasons (effects), so I prefer using jQuery to another UI framework. Searches on "vertical tabs jquery" yield links to works-in-progress.

Is getting Vertical Tabs to work across browsers fraught, or is it so trivial that, once you have a solution, it doesn't seem worthwhile to post example code?

like image 728
Thomas L Holaday Avatar asked Apr 21 '09 15:04

Thomas L Holaday


People also ask

What is vertical tab in JavaScript?

Vertical Tabs are very useful to present the various content easily. These Tabs are perfect for single page web applications. We have created these easy Tabs using HTML, CSS and jQuery.


2 Answers

Have a look at the jQuery UI vertical Tabs Docu. I try out it, it worked fine.

<style type="text/css"> /* Vertical Tabs ----------------------------------*/ .ui-tabs-vertical { width: 55em; } .ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; } .ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; } .ui-tabs-vertical .ui-tabs-nav li a { display:block; } .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; } .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;} </style>   <script>     $(document).ready(function() {         $("#tabs").tabs().addClass('ui-tabs-vertical ui-helper-clearfix');         $("#tabs li").removeClass('ui-corner-top').addClass('ui-corner-left');      }); </script> 
like image 149
ig4 Avatar answered Oct 12 '22 06:10

ig4


Try here:

http://www.sunsean.com/idTabs/

A look at the Freedom tab might have what you need.

Let me know if you find something you like. I worked on the exact same problem a few months ago and decided to implement myself. I like what I did, but it might have been nice to use a standard library.

like image 29
David Berger Avatar answered Oct 12 '22 07:10

David Berger