Below is the code snippet. Make use of jsfiddlelink/show
link for a precise view.
This displays a vertical tab using jQuery.
In this implementation, I utilized
box-shadow: 2px 2px 2px 1px #888888;
, which prevented me from using border-right: 3px solid white
when the tab is active.
I aim to merge the box shadow with the div as shown below:
The expected result should look like this..
Code:
$(document).ready(function() {
ons.bootstrap();
$('#tabs').tabs().addClass('ui-tabs-vertical ui-helper-clearfix');
});
.ui-tabs.ui-tabs-vertical {
padding: 0;
width: 42em;
margin-left: 6%;
}
/* Other CSS styles */
<link rel="stylesheet" href="http://onsen.io/OnsenUI/build/css/onsenui.css">
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<!-- More script and link references -->
</ons-navigator>
EDIT:
This is my CSS snippet:
*, *:before, *:after {
box-sizing: border-box;
Although I added box-sizing: none !important
in #a,#b,#c
CSS Style, it did not produce the desired result!