"Bootstrap 4 : Step Wizard with Collapse"
Bootstrap 4.1.1 Snippet by mylastof

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container my-5"> <h1 class="text-center text-uppercase text-primary"> STEP WIZARD <span class="text-muted">with Collapse</span> </h1> <div class="my-5"> <div class="steps" id="stepWizard"> <div class="step position-relative"> <div class="step-heading position-static" id="step1"> <a class="" role="button" data-toggle="collapse" href="#collapse1" aria-expanded="true" aria-controls="collapse1"> <div class="num d-inline-flex text-white align-items-center justify-content-center position-relative rounded-circle bg-primary">1</div> <div class="pl-3 d-inline-flex title">Step 1</div> </a> </div> <div class="line position-absolute"></div> <div id="collapse1" class="pl-5 collapse show" aria-labelledby="step1" data-parent="#stepWizard"> <div class="step-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="step position-relative"> <div class="step-heading position-static" id="step2"> <a class="" role="button" data-toggle="collapse" href="#collapse2" aria-expanded="true" aria-controls="collapse2"> <div class="num d-inline-flex text-white align-items-center justify-content-center position-relative rounded-circle bg-primary">2</div> <div class="pl-3 d-inline-flex title">Step 2</div> </a> </div> <div class="line position-absolute"></div> <div id="collapse2" class="pl-5 collapse" aria-labelledby="step2" data-parent="#stepWizard"> <div class="step-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> </div> </div> <p class="text-center">by: <a target="_blank" href="https://www.totoprayogo.com">totoprayogo.com</a></p> </div>
.step-heading { height: 33px; padding-bottom: 50px; cursor: pointer; } .step:last-child .step-heading { padding-bottom: 0; } .step-heading > a:hover { text-decoration: none; } .step-heading .num { width: 32px; height: 32px; } .steps .step .line { border-left: 1px solid #333; left: 16px; bottom: 0px; top: 32px; }

Related: See More


Questions / Comments: