"Tree structure (man)"
Bootstrap 3.3.0 Snippet by mani88100ni

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-12"> <ol class="tree-structure"> <li> <span class="num">1</span> <a href="#">Sources Sources Sources Sources Sources Sources Sources Sources Sources Sources Sources </a> <ol> <li> <span class="num">1.1</span> <a href="#">Sources Child</a> </li> <li> <span class="num">1.2</span> <a href="#">Sources Child</a> </li> <li> <span class="num">1.3</span> <a href="#">Sources Child</a> </li> <li> <span class="num">1.4</span> <a href="#">Sources Child</a> </li> </ol> </li> <li> <span class="num">2</span> <a href="#">Sources</a> <ol> <li> <span class="num">2.1</span> <a href="#">Sources Child Sources Child Sources ChildSources Child Sources Child Sources Child </a> </li> <li> <span class="num">2.2</span> <a href="#">Sources Child Sources Child Sources ChildSources Child Sources Child Sources Child </a> </li> <li> <span class="num">2.3</span> <a href="#">Sources Child</a> </li> <li> <span class="num">2.4</span> <a href="#">Sources Child</a> </li> </ol> </li> <li> <span class="num">3</span> <a href="#">Sources</a> <ol> <li> <span class="num">3.1</span> <a href="#">Sources Child</a> </li> <li> <span class="num">3.2</span> <a href="#">Sources Child</a> </li> <li> <span class="num">3.3</span> <a href="#">Sources Child</a> </li> <li> <span class="num">3.2</span> <a href="#">Sources Child</a> </li> </ol> </li> </ol> </div> </div> </div>
*{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } .tree-structure{ list-style: none; clear: both; padding-left: 15px; } .tree-structure li { position: relative; } .tree-structure li a{ font-weight: normal; color: red; text-decoration: none; font-weight: 700; vertical-align: middle; -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: calc(100% - 50px); vertical-align: top; } .tree-structure li a:hover{ padding-left: 5px; } .tree-structure > li > .num{ display: inline-block; background: #333; min-width: 24px; padding-left: 0px; padding-right: 0px; text-align: center; padding: 3px 9px; margin-right: 10px; color: #fff; font-weight: 700; font-size: 12px; } .tree-structure > li > .num:after{ position: absolute; content: ""; width: 1px; height: 100%; background-color: #939393; top: 5px; left: 12px; z-index: -1; } .tree-structure > li:last-child > .num:after{ height: calc(100% - 44px); } .tree-structure ol{ padding: 20px 0 20px 45px; } .tree-structure ol li{ list-style-type: none; padding: 8px 0 } .tree-structure ol li .num{ position: relative; } .tree-structure ol li a{ color: #000; font-weight: normal; } .tree-structure .num{ background-color: #666; min-width: 24px; padding-left: 0px; padding-right: 0px; text-align: center; padding: 3px 9px; margin-right: 10px; color: #fff; font-weight: 700; font-size: 12px; display: inline-block; vertical-align: middle; } .tree-structure ol li .num:before{ position: absolute; content: ""; top: 0; bottom: 0; right: 100%; margin: auto; width: 33px; height: 1px; background-color: #939393; }

Related: See More


Questions / Comments: