A
A
asd dsa2018-11-25 22:26:02
Layout
asd dsa, 2018-11-25 22:26:02

How to make a footer pressed to the bottom?

I'm using Angular-Material and FlexLayout, can you tell me how to make the footer be pressed to the bottom.

<div class="container">
    <nav>
        <mat-toolbar color="primary" class="nav-panel">
            <mat-toolbar-row fxLayoutGap="20px">
                <a [routerLink]="homeToggle(toggle)" [routerLinkActive]="['active']">Expense Manager
                </a>
                <span class="example-spacer"></span>
                <a routerLink="report" routerLinkActive="active">Report</a>
                <a routerLink="expense" routerLinkActive="active">Add Expense</a>
                <a *ngIf="toggle" routerLink="profile" class="user-data" fxLayoutGap="10px"
                   fxLayoutAlign="center center">
                    <span class="nav-panel__name" align="middle">{{userName}}</span>
                    <img [src]="userAvatar" alt="test" id="avatar">
                </a>
                <a [routerLink]="loginToggle(toggle)"
                   routerLinkActive="active-link"
                   [routerLinkActive]="['active']">
                    {{toggle ? 'Logout' : 'Login'}}
                </a>
            </mat-toolbar-row>
        </mat-toolbar>
    </nav>

    <main>
        <router-outlet></router-outlet>
    </main>

    <footer>
        <mat-toolbar color="primary">
            <mat-toolbar-row fxLayoutAlign="center center">
                <div class="container">
                    <p class="footer-text">&copy; Copyright 2018 | Igor Shvets</p>
                </div>
            </mat-toolbar-row>
        </mat-toolbar>
    </footer>
</div>

.container {
    height: 100%
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azaza, 2018-11-25
@natojezlo

w3.org.ua/html/prizhimaem-futer-k-nizu-stranitsyi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question