html - Twitter Bootstrap 3.1 Nav-stacked Spacing -


i'm quite new @ coding html , sort of business decided going use built , sturdy api. therefore, chose twitter bootstrap 3.1 i've had some prior experience it.

anyway, current nav-stacked looks like. it's css butchered wanted collapsible.

http://i.imgur.com/j8fpsj6.jpg

and here code particular section of code. got rid of repeating parts save space.

<div class="col-xs-3 sidebar" id="asesidenav">           <!this left vertical nav bar>           <div class="navbar navbar-inverse" id="asesidenav">                           <div class="collapse navbar-collapse" id="asesidenav">               <ul class="nav nav-stacked" id="menu-bar"> <!-- notice "nav-stacked" class added here -->                 <!-- add panel class workaround collapsing menu items in bootstrap -->                 <li class="panel dropdown">                  <a data-toggle="collapse" data-parent="#menu-bar" href="#collapse1"> safety</a>                   <!-- notice id of element must match href attribute in <a> element above it. have added panel-collapse class -->                   <ul id="collapse1" class="panel-collapse collapse">                     <li><a href="#">guardwell perimeter safety products</a></li>                   </ul>                 </li>                  <li class="panel dropdown">                   <a data-toggle="collapse" data-parent="#menu-bar" href="#collapse2"> kettles</a>                   <ul id="collapse2" class="panel-collapse collapse">                     <li><a href="#">patch kettles</a></li>                     <li><a href="#">asphalt kettles</a></li>                     <li><a href="#">kettle accessories</a></li>                     <li><a href="#">heat transfer kettles</a></li>                     <li><a href="#">emission control system</a></li>                   </ul>                 </li>              </div>           </div> <!end of navbar>         </div> 

as can see, it's been pretty butchered. rendition of else's code different page. page being so: http://www.jeffmould.com/2013/12/15/create-twitter-bootstrap-vertical-drop-menu/

the css used compared mine quite different don't have nav-bar hanging top left. anyway, question is, there large spacings between each individual button , can't figure out or id or class dictating spacing. them brought closer if possible.

i apologize if wording or phrasing poor, i've started coding html i'm quite behind on of possible standards?

tl;dr - root buttons in nav-stacked collapse drop menu way far apart, can see picture linked above, how bring them closer together? assume css don't know class interacting them.

you've applied class .panel <li> elements in menu (i'm not sure why). bootstrap applies 20px of bottom margin elements class.

from bootstrap css:

.panel {     background-color: #ffffff;     border: 1px solid rgba(0, 0, 0, 0);     border-radius: 4px;     box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);     margin-bottom: 20px; } 

you can fix this:

#asesidenav .panel {     margin-bottom: 0; } 

you might want check out firefox' firebug. has css panel sort through sort of stuff. https://getfirebug.com/css. chrome , ie have similar tools built in.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -