Display tab content when click the tab menu, But it is displaying at the end of the page












0














Display tab content when click the tab menu, But it is displaying at the end of the page.



currently the tab content is displaying at the end of the page, But it show under the tab when i click on the tab.






ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>












share|improve this question
























  • Could you please provide a stackblitz ?
    – selem mn
    Nov 19 '18 at 15:35
















0














Display tab content when click the tab menu, But it is displaying at the end of the page.



currently the tab content is displaying at the end of the page, But it show under the tab when i click on the tab.






ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>












share|improve this question
























  • Could you please provide a stackblitz ?
    – selem mn
    Nov 19 '18 at 15:35














0












0








0







Display tab content when click the tab menu, But it is displaying at the end of the page.



currently the tab content is displaying at the end of the page, But it show under the tab when i click on the tab.






ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>












share|improve this question















Display tab content when click the tab menu, But it is displaying at the end of the page.



currently the tab content is displaying at the end of the page, But it show under the tab when i click on the tab.






ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>








ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>





ul {
list-style: none;
padding-left: 0;
}

.price {
font-weight: bold;
color: #777777;
}

.positive-amount {
color: #77CE05;
}

.negative-amount {
color: rgb(255, 0, 0);
}

h1 {
padding-left: 0px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.075rem;
font-weight: 500;
margin-top: 6px;
margin-bottom: 30px;
}

ul.accountList {
&>li {
//background-color: linear-gradient(#eee, white);
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
//transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
//transition: top 5s ease-in-out;
cursor: pointer;
position: relative;
top: 0;
padding: 2em;
border-radius: 0.25em;
margin: 1em 0;
display: flex;
justify-content: space-between;
&>h2 {
font-size: 1em;
margin-bottom: 0;
font-weight: 600 !important;
&>small {
font-size: 0.75em;
color: #888888;
}
}
&>ul.info {
display: flex;
align-items: center;
&>li {
display: inline;
}
&>li+li::before {
content: '|';
color: #aaa;
padding: 0 0.5em;
}
}
.highligted-text {
color: blue;
}
}
&>li.account-list {
padding: 2em 2em 2em 2em;
}
}

.table {
background: linear-gradient(90deg, rgb(240, 240, 240), rgb(250, 250, 250));
th {
color: blue;
border-top: 0;
padding: 20px 0px 20px 15px;
font-size: 1rem !important;
text-align: left;
}
tbody tr {
border-top: 1px solid #ddd;
td {
padding: 25px 0px 25px 15px;
font-size: 1rem;
border-top: 0;
vertical-align: top;
text-align: right;
}
}
}

.iconheader {
width: 35px;
height: 25px;
cursor: pointer;
float: right;
}

.table thead th {
vertical-align: initial !important;
text-transform: uppercase;
}

<ng-container *ngIf="accounts?.length > 0 && !accountsInfo.loading && !accountsInfo.error">
<ul class="accountList">
<li class="account-list" *ngFor="let account of accounts" (click)="accountSelection(account)">
<h2>
<span>{{account?.accountName}}</span>
<br>
<span class="display-4">{{account?.accountId | maskAccountno : true}}</span>
</h2>
<ul class="info">
<li>Balance:
<span class="price" *ngIf="account?.totalAccountValue > 0">+</span>
<span class="price" *ngIf="account?.totalAccountValue < 0">-</span>
<span class="price">{{account?.totalAccountValue | removeMinus | currency}}</span>
</li>
</ul>
</li>
</ul>
<div class="transDetailsRecord">
<table class="table" *ngIf="selectedAccount">
<thead>
<tr>
<td colspan="12" class="border-0">
<app-pagination [currentPage]="pagination.currentPage" [totalPages]="pagination.totalPages" [totalItems]="pagination.totalItems" [recordsPerPage]="pagination.recordsPerPage" [displyFrom]="pagination.displyFrom" [displyTo]="pagination.displyTo" (paginationClicked)="paginationTriggered($event)"></app-pagination>
</td>
</tr>
<tr>
<th>Acquisition Date</th>
<th>Symbol/CUSIP</th>
<th>Description</th>
<th>Quantity</th>
<th>Price($)</th>
<th>Value($)</th>
<th>Cost Basis($)</th>
<th>Unit Cost($)</th>
<th>Short Term G/L($) </th>
<th>Long Term G/L($)</th>
<th>Covered</th>
<th>Average Cost Indicator</th>
<!-- <th>
<img class="iconheader" title="Export CSV" (click)="download('text/csv')" src="./assets/images/export_CSV3.png" />
</th> -->
</tr>
</thead>
<tbody>
<tr *ngIf="transactionsInfo.loading || transactionsInfo.error || transactionsInfo.noData">
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.loading">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.error">
<ngb-alert [dismissible]="false" type="danger">{{errorMessage}}</ngb-alert>
</td>
<td colspan="12" class="text-center w-100" *ngIf="transactionsInfo.noData">
<ngb-alert [dismissible]="false" type="info">No transactions available</ngb-alert>
</td>
</tr>
<ng-container *ngFor="let tran of unrealizedTransaction">
<tr>
<td class="highligted-text">{{tran.acquisitionDate | date : 'M/d/yy'}}</td>
<td>{{tran.symbolcusip}}</td>
<td>{{tran.description}}</td>
<td>{{tran.quantity}}</td>
<td>{{tran.purchaseCost | currency}}</td>
<td>{{tran.soldValue | currency}}</td>
<td [ngClass]="{'positive-amount': tran.purchaseCost >= 0, 'negative-amount': tran.purchaseCost < 0}">
<span *ngIf="tran.purchaseCost >= 0">+</span>
<span *ngIf="tran.purchaseCost < 0">-</span>
<span>{{tran.purchaseCost | removeMinus | currency}}</span>
</td>
<td>{{tran.adjustedCost | currency}}</td>
<td [ngClass]="{'positive-amount': tran.shortTermGainLoss >= 0, 'negative-amount': tran.shortTermGainLoss < 0}">
<span *ngIf="tran.shortTermGainLoss > 0">+</span>
<span *ngIf="tran.shortTermGainLoss < 0">-</span>
<span>{{tran.shortTermGainLoss | currency}}</span>
</td>
<td>{{tran.longTermGainLoss | currency}}</td>
<td>{{tran.covered}}</td>
<td>{{tran.avgCostIndicator}}</td>
</tr>

</ng-container>
</tbody>
</table>
</div>
</ng-container>
</div>






html css angular






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '18 at 15:21









Pete

40.6k1875116




40.6k1875116










asked Nov 19 '18 at 15:11









Sandeep Rockzz

13




13












  • Could you please provide a stackblitz ?
    – selem mn
    Nov 19 '18 at 15:35


















  • Could you please provide a stackblitz ?
    – selem mn
    Nov 19 '18 at 15:35
















Could you please provide a stackblitz ?
– selem mn
Nov 19 '18 at 15:35




Could you please provide a stackblitz ?
– selem mn
Nov 19 '18 at 15:35












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377538%2fdisplay-tab-content-when-click-the-tab-menu-but-it-is-displaying-at-the-end-of%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377538%2fdisplay-tab-content-when-click-the-tab-menu-but-it-is-displaying-at-the-end-of%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith