Bootstrap rowspan not aligned from the top - html

I need the boxes aligned at right also vertically aligned with the first box at left, but now these boxes are only aligned with the last vertical box at the left. How can I achieve that?
starter.component.html code:
<div class="card" *ngIf="loading"><div class="card-body pt-0"><div class="k-i-loading">Carregando informaçães do dashboard...</div></div></div>
<div class="row" *ngxPermissionsOnly="['GERENTE_FINANCEIRO', 'ADMINISTRATIVO_FINANCEIRO']">
<div class="col-lg-8 col-md-8 col-sm-8">
<detalhes-titulos [titulos]="titulosDespesaData" [tipo]="DESPESA" [loading]="loading"></detalhes-titulos>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<detalhes-titulos [titulos]="titulosDespesaData" [tipo]="DESPESA" [loading]="loading"></detalhes-titulos>
</div>
<div class="col-lg-4 col-md-4 col-sm-4">
<div *ngFor="let item of contasData" class="card col-lg-12 col-md-12 col-sm-12">
<div class="card-body">
<h6 class="text-muted m-t-10 m-b-0"><span style="background: #56c0d8;" class="lstick"></span>{{ item.nome }}</h6>
<h2 [ngClass]="{'text-info': item.saldo > 0, 'text-danger': item.saldo < 0}">{{ item.saldo | currency:'BRL':'symbol':'1.2-2':'pt' }}</h2>
</div>
</div>
</div>
</div>
starter-detalhes-titulos.component.html
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="card-body">
<div class="d-flex no-block">
<div>
<h4 class="card-title"><span style="background: #56c0d8;" class="lstick"></span>Títulos a {{ tipo === 0 ? 'receber' : 'pagar'}} nos próximos 10 dias</h4>
</div>
</div>
<div class="table-responsive m-t-20" *ngIf="titulos.length > 0">
<table class="table vm no-th-brd pro-of-month">
<thead>
<tr>
<th>Número</th>
<th class="text-center">Emissão</th>
<th class="text-center">Vencimento</th>
<th class="text-right">Valor</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of titulos">
<td><span class="p-1 text-white font-weight-bold rounded small vitai-bg-color">{{ item.numero }}</span></td>
<td class="text-center">{{ item.emissao | date:"dd/MM/yyyy" }}</td>
<td class="text-center">{{ item.vencimento | date:"dd/MM/yyyy" }}</td>
<td class="text-right text-info" *ngIf="item.natureza === 0">{{ item.valor | currency:'BRL':'symbol':'1.2-2':'pt' }}</td>
<td class="text-right text-danger" *ngIf="item.natureza === 1">- {{ item.valor | currency:'BRL':'symbol':'1.2-2':'pt' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="table-responsive m-t-20" *ngIf="titulos.length === 0">
<table class="table vm no-th-brd pro-of-month">
<tbody>
<tr>
<td class="text-center" *ngIf="loading">Carregando títulos a {{ tipo === 0 ? 'receber' : 'pagar'}} nos próximos dez dias.</td>
<td class="text-center" *ngIf="!loading">Nenhum título a {{ tipo === 0 ? 'receber' : 'pagar'}} encontrado nos próximos dez dias.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
EDIT:
If I change starter.component.html code to:
<div class="card" *ngIf="loading"><div class="card-body pt-0"><div class="k-i-loading">Carregando informaçães do dashboard...</div></div></div>
<div class="row" *ngxPermissionsOnly="['GERENTE_FINANCEIRO', 'ADMINISTRATIVO_FINANCEIRO']">
<div class="col-lg-8 col-md-8 col-sm-8">
<detalhes-titulos [titulos]="titulosDespesaData" [tipo]="DESPESA" [loading]="loading"></detalhes-titulos>
</div>
<div class="col-lg-4 col-md-4 col-sm-4">
<div *ngFor="let item of contasData" class="card col-lg-12 col-md-12 col-sm-12">
<div class="card-body">
<h6 class="text-muted m-t-10 m-b-0"><span style="background: #56c0d8;" class="lstick"></span>{{ item.nome }}</h6>
<h2 [ngClass]="{'text-info': item.saldo > 0, 'text-danger': item.saldo < 0}">{{ item.saldo | currency:'BRL':'symbol':'1.2-2':'pt' }}</h2>
</div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<detalhes-titulos [titulos]="titulosDespesaData" [tipo]="DESPESA" [loading]="loading"></detalhes-titulos>
</div>
</div>
I get the following layout which could be almost what I want:
Now I just need the second box at left closer to the first one.

Well you need to define what you want here.
Simply putting top-left box and the bottom-left box in the 8/12 column and those little boxes on the right in the 4/12 column will fix your problem:
<div class="row">
<div class="col-sm-8">
<detalhes-titulos [titulos]="titulosDespesaData" />
<detalhes-titulos [titulos]="titulosDespesaData" />
</div>
<div class="col-sm-4">
<div *ngFor="" class="card">
...
</div>
</div>
</div>
But I don't know if that's what you want, especially you didn't define what you want for different breakpoints.

Related

How to bind a table tr and td with an object array in angular 11

I am trying to generate a table using array list. I want to generate TR and TD based on the below data. when I have one data its working as expected with adding one ngfor in TR property. I want to repeat both TR and TD based on the API result. Here is the code sample I have tried.
<table class="table align-items-center table-dark table-flush">
<tbody>
<tr class="col-sm-12 col-md-12 col-lg-12 col-xl-12" *ngFor="let Item of BitData;">
<td class="pad1" *ngFor="let dataItem of Item;">
<div class="media align-items-center">
<div class="col-sm-12 col-md-12 col-lg-12 col-xl-12 pad1">
<div class="card card-stats mb-4 mb-xl-0 bg-gradient-info">
<div class="card-body">
<div class="row border">
<div
[ngClass]="dataItem.PLANNED_HOLE_SECTION == dataItem.ACTUAL_HOLE_SECTION ? 'col bg-gradient-success' : 'col bg-gradient-warning'">
<h5 class="h5 card-title text-white mb-0 font-sm">Hole Size</h5>
<h5 class="h5 font-weight-bold font-md">{{dataItem.PLANNED_HOLE_SECTION}}</h5>
</div>
<div
[ngClass]="dataItem.PLANNED_HOLE_SECTION == dataItem.ACTUAL_HOLE_SECTION ? 'col bg-gradient-success' : 'col bg-gradient-warning'">
<h5 class="h5 card-title text-white mb-0 font-sm">Hole Size</h5>
<h5 class="h5 font-weight-bold font-md">{{dataItem.ACTUAL_HOLE_SECTION}}</h5>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
and this is the API response data
I am expecting the Table1 in first row, Table2 in second row etc.
I am getting an error in console like Error trying to diff '[object Object]'. Only arrays and iterables are allowed. I am new to angular, any help on this highly appreciated.
I think this link can help you:
.
Showing array of object in mat table
After my research I found keyvalue pipes in detailes here and its solved my problem. Below is my solution, may help others in future.
<table class="table align-items-center table-dark table-flush">
<tbody>
<tr class="col-sm-12 col-md-12 col-lg-12 col-xl-12" *ngFor="let item of BitData | keyvalue">
<td class="pad1" *ngFor="let dataItem of item.value | keyvalue">
<div class="media align-items-center">
<div class="col-sm-12 col-md-12 col-lg-12 col-xl-12 pad1">
<div class="card card-stats mb-4 mb-xl-0 bg-gradient-info">
<div class="card-body">
<div class="row border">
<div
[ngClass]="dataItem.value.PLANNED_HOLE_SECTION == dataItem.value.ACTUAL_HOLE_SECTION ? 'col bg-gradient-success' : 'col bg-gradient-warning'">
<h5 class="h5 card-title text-white mb-0 font-sm">Hole Size</h5>
<h5 class="h5 font-weight-bold font-md">{{dataItem.value.PLANNED_HOLE_SECTION}}</h5>
</div>
<div
[ngClass]="dataItem.value.PLANNED_HOLE_SECTION == dataItem.value.ACTUAL_HOLE_SECTION ? 'col bg-gradient-success' : 'col bg-gradient-warning'">
<h5 class="h5 card-title text-white mb-0 font-sm">Hole Size</h5>
<h5 class="h5 font-weight-bold font-md">{{dataItem.value.ACTUAL_HOLE_SECTION}}</h5>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>

Bootstrap & Laravel columns breaks on mobile version

Can anybody help me fix my problem. I have bootstrap product rows.
On the desktop it shows 3 columns per row as it should, on mobile it shows 2 columns on the first row, and 1 column on the second. I need it to show 2 columns per row on mobile.
My blade
.pad-10 {
padding: 10px;
#media (min-width: 576px)
.col-sm-6 {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
<!-- Products Row -->
#php
$counter = 1;
#endphp
#foreach($products as $product)
#if($counter == 1 or $counter > 3)
<div class="row">
#endif
<div class="col-md-4 col-sm-6 pad-10">
<div>
#php
if($product->order_price != 0){
$percent = (($product->order_price - $product->sell_price)*100) / $product->order_price;
} else {
$percent = 0;
}
$percentage = round(abs($percent)) ?: 0;
#endphp
<a href="{{ url('product/' . $product->id) }}" class="a-prod">
<div class="card product">
<div class="img-prod">
<img class="card-img-top" src="{{ asset('storage/' . $product->main_image) }}" alt="Card image cap">
#if($percentage)
<div class="discount-block-mobile">-{{ $percentage }}%</div>
#else
<div class="new-block-m">New</div>
#endif
</div>
<!---------------------- -->
<div class="card-body cr-body-paddyng-max">
<a href="" class="a-prod">
<div class="col-sm-12 pb-4">
<div class="row">
<div class="col-6 p-0 mobile-col-6">
<p class="p-prod-font">{{ $product->name }}</p>
<span class="p-prod-font">{{ $product->second_name }}</span>
</div>
<div class="col-6 p-0 mobile-col-6">
#if($percentage)
<div class="price-5">{{ $product->order_price }} MDL</div>
#endif
<div class="price-6 mr-2">{{ $product->sell_price }} MDL</div>
#if($percentage)
<span class="disc-block">-{{ $percentage }}%</span>
#else
<span class="new-block">New</span>
#endif
</div>
</div>
</div></a>
<div class="col-sm-12 p-0 size-blocks d-n ">
<div class="row prod-row">
<div class="size-head d-n">Размер</div>
<div class="radio-toolbar">
<input type="radio" id="radioApple" name="chosen_size" value="S">
<label for="radioApple">S</label>
<input type="radio" id="radioBanana" name="radioFruit" value="banana">
<label for="radioBanana">S</label>
<input type="radio" id="radioOrange" name="radioFruit" value="orange">
<label for="radioOrange">M</label>
</div>
</div>
</div>
<div class="col-sm-12 p-0 butt-pr-block d-n">
<div class="row">
<div class="col-12 p-0">
</div>
</div>
<div class="row">
<div class="col-6 p-0 ">
<a href="{{ url('product/' . $product->id) }}" class="btn prod-btn b-1 waves-effect waves-light">
Подробнее
</a>
</div>
<div class="col-6 p-0 ">
<div class="btn btn-primary prod-btn b-1 waves-effect waves-light cart-btn add-to-cart" data-toggle="modal" data-target="#addToCart" data-id="{{ $product->id }}">
<span style="color:#fff; font-weight:bold;">В корзину</span>
</div>
</div>
</div>
</div>
</div>
<!------------------------->
<div class="card-body cr-body-padding-max d-none">
<div class="col-sm-12 pb-4">
<div class="row">
<div class="col-12 p-1">
<p class="p-prod-font">{{ $product->name }}</p>
<span class="p-prod-font">{{ $product->second_name }}</span>
</div>
#if($percentage)
<div class="col-6 p-0 mobile-col-6" style="margin-top: -5%;">
#else
<div class="col-6 p-0 mobile-col-6">
#endif
#if($percentage)
<div class="price-5">{{ $product->order_price }} MDL</div>
#endif
<div class="price-4 mt-2">{{ $product->sell_price }} MDL</div>
#if($percentage)
<span class="disc-block">-{{ $percentage }}%</span>
#else
<span class="new-block">New</span>
#endif
</div>
</div>
</div>
<div class="col-sm-12 p-0 size-block">
<div class="row prod-row" style="display:none;">
<div class="col-2 p-0">
<p class="p-size">Размер</p>
</div>
<div class="col-10 p-0 text-right">
<label for="sizeChoiceXXS" class="border-hov-size">
<input type="radio" id="sizeChoiceXXS" name="sizeProd"
value="XXS">
XXS</label>
<label for="sizeChoiceXS">
<input type="radio" id="sizeChoiceXXS" name="sizeProd"
value="XS">
XS</label>
<label for="sizeChoiceS">
<input type="radio" id="sizeChoiceS" name="sizeProd" value="S">
S</label>
<label for="sizeChoiceM">
<input type="radio" id="sizeChoiceM" name="sizeProd" value="M">
M</label>
<label for="sizeChoiceL">
<input type="radio" id="sizeChoiceL" name="sizeProd" value="L">
L</label>
<label for="sizeChoiceXL">
<input type="radio" id="sizeChoiceXL" name="sizeProd"
value="XL">
XL</label>
<label for="sizeChoiceXXL">
<input type="radio" id="sizeChoiceXXL" name="sizeProd"
value="XXL">
XXL</label>
<label for="sizeChoiceXXXL">
<input type="radio" id="sizeChoiceXXXL" name="sizeProd"
value="XXXL">
XXXL</label>
</div>
</div>
</div>
<div class="col-sm-12 p-0 butt-pr-block">
<div class="row">
<div class="col-12 p-0 ">
<a href="{{ url('product/' . $product->id) }}" class="btn prod-btn b-1 d-none d-sm-block">
Подробнее
</a>
</div>
<div class="col-6 p-0 d-none">
<button class="btn prod-btn b-2 add-to-cart" data-id="{{ $product->id }}">
В корзину
</button>
</div>
</div>
</div>
</div>
</a>
</div>
</div>
</div>
#if($counter == 0 OR $counter == 3)
</div>
#endif
#if($counter == 3)
#php
$counter = 0;
#endphp
#endif
#php
$counter++;
#endphp
#endforeach
</section>
<!--Products-->
Tried everything I found on google and still cant fix it.
If columns add up to an odd number, it will show one column in the last row since it's the last column.. but there will be an empty slot for an additional column.
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<div class="row">
<div class="col-6 col-md-4">Col 1, 3 on desktop, 2 on small sc</div>
<div class="col-6 col-md-4">Col 2, 3 on desktop, 2 on small sc</div>
<div class="col-6 col-md-4">Col 3, 3 on desktop, 2 on small sc</div>
</div>

Horizontal scroll bar in panel-body bootstrap

I am using a panel within that panel I am using div's with list-group ofcourse it will stack evantually but I want it that is has a horizontal scroll bar. I already tried using overflow this is not succesfully.
Shown below is the code that I am using:
<div class="row">
<div class="col-md-12">
<div class="panel panel-flat ">
<div class="panel-heading">
<h6 class="panel-title">Gebruikers</h6>
<div class="heading-elements">
<ul class="icons-list">
<li><a data-action="collapse"></a></li>
</ul>
</div>
</div>
<div class="panel-body ">
#foreach($permlist as $list)
<div class="col-md-3" >
<div class="content-group">
<h6 class="text-semibold heading-divided"><i class="icon-folder6 position-left"></i>
{{$list->name}} </h6>
<div class="list-group no-border">
#foreach($permreq as $request)
#if($request->state == $list->short_name)
<a href="{{route('permission.manage.details.user', $request->id)}}" class="list-group-item ">
<i ></i>{{ $request->requester }} voor {{$request->name}}
#if(isset($request->tags))
#foreach(json_decode($request->tags) as $tag)
#foreach($permlabel as $label)
#if($label->short_name == $tag)
<span class="label" style="background-color: {{$label->color}}"> </span>
#endif
#endforeach
#endforeach
#endif
</a>
#endif
#endforeach
</div>
</div>
</div>
#endforeach
</div>
</div>
</div>
</div>

Multiple lists with drag & drop within group

I have two divs in a parent component. And there are cards (components rendered in divs) in each of the above two divs. Each card has got a list of employees (also divs) from which I want to drag any across other cards within their own parent div.
Below image shows how my page look like:
I want the page to be able to drag employees within Pickup or Drop. For eg: move Employee1 from {Place1 To Place2} to {Place3 To Place2} I have used cdkDropList/cdkDrag, however I could not drag anything at all.
Below is my html for parent component with the Pickup & Drop divs:
<div class="row">
<div class="col-md-12">
<h5 class="bg-primary text-white">Pickup</h5>
</div>
</div>
<!-- Pickup DIV -->
<div class="row" cdkDropListGroup>
<div class="col col-md-4" *ngFor="let item of pickupCabs" cdkDropList [cdkDropListData]="item.AssignedEmployees"
(cdkDropListDropped)="onDrop($event)">
<app-admin-special-request-allocation-card [allocatedCab]="item"
(childevent)="onSpecialRequestReallocation($event)" cdkDrag>
</app-admin-special-request-allocation-card>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h5 class="bg-primary text-white">Drop</h5>
</div>
</div>
<!-- Drop DIV -->
<div class="row" cdkDropListGroup>
<div class="col col-md-4" *ngFor="let item of dropCabs" cdkDropList [cdkDropListData]="item.AssignedEmployees"
(cdkDropListDropped)="onDrop($event)">
<app-admin-special-request-allocation-card [allocatedCab]="item"
(childevent)="onSpecialRequestReallocation($event)" cdkDrag>
</app-admin-special-request-allocation-card>
</div>
</div>
Below is my html for the individual cards/routes (app-admin-special-request-allocation-card.component.html)
<div class="card bg-light shadow p-3 mb-4 bg-white corners mt-2 mb-2">
<div class="card-body text-center">
<div [class.alert-danger]="!isAllocatedSuccess" [class.alert-success]="isAllocatedSuccess" class="alert"
*ngIf="isAllocated">{{message}}</div>
<div class="row">
<div class="col text-right">
<span><b>{{allocatedCab.AllocationStatusText}}</b></span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<i class='fas fa-{{allocatedCab.CabType|lowercase}}' style='font-size:30px;'></i>
<br>
<b>{{allocatedCab.Occupance}}/{{allocatedCab.Capacity}}</b>
<p><b><span>{{allocatedCab.RouteType}}</span></b></p>
</div>
<div class="row">
<p><b><span>{{allocatedCab.PickupPoint}} To {{allocatedCab.DropPoint}}</span></b></p>
</div>
<div class="row">
<p style="text-align: left"><b><span>{{allocatedCab.VendorName}} -
{{allocatedCab.CabName}} - {{allocatedCab.RegNo}}</span></b></p>
</div>
<!-- employee list -->
<div class="row" *ngFor="let employee of allocatedCab.AssignedEmployees">
<p style="text-align: left"><span class="fa fa-user"></span>
<a href="./admin#" (click)="open(content,allocatedCab,employee)">
{{employee.FirstName}} {{employee.LastName}} -
<small> {{employee.PickupDate | date: "hh:mm a"}} </small>
</a>
<i style="color:red; cursor: pointer;" class="fa fa-remove"
(click)="openConfirmation(content1, employee)"></i></p>
</div>
</div>
<div class="row">
<div class="col-md-6 pt-2 text-left ">
<span>{{allocatedCab.PickupDate | date: "dd/MM/yyyy hh:mm a"}}</span>
</div>
</div>
</div>
</div>
I think there is a mistake in your code. The cdkDropList attribute is placed in the wrong div. And the cdkDrag attribute should be given to the exact div which can be draggable. So only give cdkDropListGroup attribute in parent div and place cdkDropList attribute inside the card component. ie.
You don't need cdkDropList attribute and the following code in that element in your parent div (Pickup and Drop).
Instead, add it in app-admin-special-request-allocation-card.component.html to a new wrapping div over the employee list div.
Add the cdkDrag attribute to exact div in which employee name is rendered.
try the below code.
Parent Component
<div class="row">
<div class="col-md-12">
<h5 class="bg-primary text-white">Pickup</h5>
</div>
</div>
<div class="row" cdkDropListGroup>
<!-- remove the 'cdkDropList' attribute and [cdkDropListData]=" from below div -->
<div class="col col-md-4" *ngFor="let item of pickupCabs">
<app-admin-special-request-allocation-card [allocatedCab]="item" (childevent)="onSpecialRequestReallocation($event)">
</app-admin-special-request-allocation-card>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h5 class="bg-primary text-white">Drop</h5>
</div>
</div>
<div class="row" cdkDropListGroup>
<!-- remove the 'cdkDropList' attribute and [cdkDropListData]=" from below div -->
<div class="col col-md-4" *ngFor="let item of dropCabs">
<app-admin-special-request-allocation-card [allocatedCab]="item" (childevent)="onSpecialRequestReallocation($event)">
</app-admin-special-request-allocation-card>
</div>
</div>
Card Component
<div class="card bg-light shadow p-3 mb-4 bg-white corners mt-2 mb-2">
<div class="card-body text-center">
<div [class.alert-danger]="!isAllocatedSuccess" [class.alert-success]="isAllocatedSuccess" class="alert" *ngIf="isAllocated" >{{message}}</div>
<div class="row">
<div class="col text-right" >
<span><b>{{allocatedCab.AllocationStatusText}}</b></span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<i class='fas fa-{{allocatedCab.CabType|lowercase}}' style='font-size:30px;'></i>
<br>
<b>{{allocatedCab.Occupance}}/{{allocatedCab.Capacity}}</b>
<p><b><span>{{allocatedCab.RouteType}}</span></b></p>
</div>
<!-- Add the cdkDropList attribute and drop list data here -->>
<div class="col-md-9 border-bottom" cdkDropList [cdkDropListData]="allocatedCab.AssignedEmployees" (cdkDropListDropped)="drop($event)">
<div class="row">
<p><b><span>{{allocatedCab.PickupPoint}} To {{allocatedCab.DropPoint}}</span></b></p>
</div>
<div class="row">
<p style="text-align: left"><b><span>{{allocatedCab.VendorName}} - {{allocatedCab.CabName}} - {{allocatedCab.RegNo}}</span></b></p>
</div>
<!-- Add cdkDrag attribute here -->>
<div class="row" *ngFor="let employee of allocatedCab.AssignedEmployees" cdkDrag>
<p style="text-align: left"><span class="fa fa-user"></span>
<a href="./admin#" (click)="open(content,allocatedCab,employee)">
{{employee.FirstName}} {{employee.LastName}} -
<small> {{employee.PickupDate | date: "hh:mm a"}} </small>
</a>
<i style="color:red; cursor: pointer;" class="fa fa-remove" (click)="openConfirmation(content1, employee)"></i></p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 pt-2 text-left ">
<span>{{allocatedCab.PickupDate | date: "dd/MM/yyyy hh:mm a"}}</span>
</div>
</div>
</div>
</div>
It is not mandatory to give cdkDropListGroup and cdkDropList in the same component. When the above code is rendered in the browser, the structure of the cdkDropListGroup and cdkDropList will be set as parent and child relation. So I hope, you may get what you require.

Dropdown Boxes Not Responding

All of a sudden, these 3 dropdown boxes I have on my home page stopped responding. I feel like I'm going crazy and just not able to figure it out. Code is below.
I have 3 boxes that contain tables that are revealed on click. However, they are not revealing. They should look like this when clicked.
The website is thrivematching.com if you need to check it out. It was working not too long ago, so not sure what happened. The hamburger menu (on mobile) also stop working. Seems like a joint issue, but not sure?
HTML for 3 Dropdown Tables:
<div
class="accordion mt-5"
id="scenarios"
role="tablist"
aria-multiselectable="true"
>
<div class="panel-primary mb-3">
<div class="text-white" role="tab" id="studentHeading">
<h4>
<button
class="w-100 p-4 btn-primary text-center"
data-toggle="collapse"
data-parent="#scenarios"
data-target="#student"
aria-expanded="false"
aria-controls="student"
>
<div class="d-flex justify-content-between">
<div class="col-10 text-center text-sm-left">
<span>100% Student Loan Contribution</span>
</div>
<div class="col-2 h-100 my-auto">
<span
class="symbol rounded-circle d-block ml-auto"
></span>
</div>
</div>
</button>
</h4>
</div>
<div
id="student"
class="rounded panel-collapse collapse"
role="tabpanel"
aria-labelledby="studentHeading"
>
<h5 class="text-center pt-5 mx-3">
Employer contributes <strong>$0</strong> to employee retirement
plan and <strong>$3,000</strong> to student loans annually.
</h5>
<div class="mr-3">
<table
class="table justify-content-center text-center text-white round-table mt-5 mb-2 table-responsive-sm"
>
<caption>
<span class="sr-only"
>100% Student Loan Contribution</span
>
</caption>
<thead>
<tr>
<td class="pr-4"></td>
<th scope="col">Retirement Plan</th>
<th scope="col">Student Loan</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="pr-4">
Employee Contributes
</th>
<td>0%</td>
<td>5% ($250/month)</td>
</tr>
<tr>
<th scope="row" class="pr-4">Employer Match</th>
<td>0%</td>
<td>5% ($250/month)</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="panel-secondary mb-3">
<div class="text-white" role="tab" id="retirementHeading">
<h4>
<button
class="w-100 p-4 btn-secondary text-center"
data-toggle="collapse"
data-parent="#scenarios"
data-target="#retirement"
aria-expanded="false"
aria-controls="retirement"
>
<div class="d-flex justify-content-between">
<div class="col-10 text-center text-sm-left">
<span>100% Retirement Plan Contribution</span>
</div>
<div class="col-2 h-100 my-auto">
<span
class="symbol rounded-circle d-block ml-auto"
></span>
</div>
</div>
</button>
</h4>
</div>
<div
id="retirement"
class="panel-collapse collapse rounded"
role="tabpanel"
aria-labelledby="retirementHeading"
>
<h5 class="text-center pt-5 mx-3">
Employer contributes <strong>$0</strong> to employee student
loans and <strong>$3,000</strong> to retirement plan annually.
</h5>
<div class="mr-3">
<table
class="table w-100 justify-content-center text-center text-white round-table mt-5 mb-2 table-responsive-sm"
>
<caption>
<span class="sr-only"
>100% Retirement Plan Contribution</span
>
</caption>
<thead>
<tr>
<td class="pr-4"></td>
<th scope="col">Retirement Plan</th>
<th scope="col">Student Loan</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="pr-4">
Employee Contributes
</th>
<td>5% ($250/month)</td>
<td>0%</td>
</tr>
<tr>
<th scope="row" class="pr-4">Employer Match</th>
<td>5% ($250/month)</td>
<td>0%</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="panel-support mb-3">
<div class="text-white" role="tab" id="splitHeading">
<h4>
<button
class="w-100 p-4 btn-support text-center"
data-toggle="collapse"
data-parent="#scenarios"
data-target="#split"
aria-expanded="false"
aria-controls="split"
>
<div class="d-flex justify-content-between">
<div class="col-10 text-center text-sm-left">
<span>Retirement Plan/Student Loan Split</span>
</div>
<div class="col-2 h-100 my-auto">
<span
class="symbol rounded-circle d-block ml-auto"
></span>
</div>
</div>
</button>
</h4>
</div>
<div
id="split"
class="panel-collapse collapse rounded"
role="tabpanel"
aria-labelledby="splitHeading"
>
<h5 class="text-center pt-5 mx-3">
Employer contributes <strong>$1,800</strong> to employee
retirement plan and <strong>$1,200</strong> to student loans
annually. Retirement plan contributions must be matched before
student loan contributions can be applied.
</h5>
<div class="mr-3">
<table
class="table w-100 justify-content-center text-center text-white round-table mt-5 mb-2 table-responsive-sm"
>
<caption>
<span class="sr-only"
>Retirement Plan/Student Loan Split</span
>
</caption>
<thead>
<tr>
<td class="pr-4"></td>
<th scope="col">Retirement Plan</th>
<th scope="col">Student Loan</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="pr-4">
Employee Contributes
</th>
<td>3% ($150/month)</td>
<td>5% ($250/month)</td>
</tr>
<tr>
<th scope="row" class="pr-4">Employer Match</th>
<td>3% ($150/month)</td>
<td>2% ($100/month)</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>