html - Right-aligned tabs have an undesired gap to the side -
i have problems:
- i have tab-div - can find code here: http://pastebin.com/kppgebi6. can see in http://i.stack.imgur.com/u2mun.png arrows point, there space, tab doesn't start @ right corner, how can fix it?
- there underline continues behind content
div
.
what do?
<!-- latest compiled , minified css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <!-- optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"> <!-- latest compiled , minified javascript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <div class="container" style="width: 45%;float: right;"> <ul class="nav nav-tabs navbar-right"> <li><a data-toggle="tab" href="#sub_cats_{cid}">{sub_categories}</a></li> <li class="active"><a data-toggle="tab" href="#category_{cid}">{category}</a></li> </ul> <div class="clearfix"></div> <div class="tab-content" style="height: 100%;"> <div id="category_{cid}" class="tab-pane fade in active category" style="background-image: url('{category_image}');"> <h1> {category_name} </h1> </div> <div id="sub_cats_{cid}" class="tab-pane fade"> <ul class="sub_categories"> <li><a href="products.php?act=scat&id=7">one</a></li> <li><a href="products.php?act=scat&id=8">two</a></li> <li><a href="products.php?act=scat&id=12">three</a></li> <li><a href="products.php?act=scat&id=13">four</a></li> </ul> </div> </div> </div>
you don't want applying inline styles primary grid elements that. work with framework, not against it.
the fix here seems to align tabs right:
<div class="container"> <ul class="nav nav-tabs navbar-right pull-right">
update: issue application of rtl across site. reverse nav tabs:
.nav-tabs { direction: ltr; }
Comments
Post a Comment