Topic: How to define a card to take up all the available vertical space?

davout free asked 4 years ago

Can a Card be setup to consume all the available vertical space to the bottom of the viewable area in the browser?

Konrad Stępień staff answered 4 years ago

Hi @davout,

something like that?

<div class="col-md-4 m-5 position-relative" [ngClass]="'d-md-block'" style="min-height: 100vh;">
  <mdb-card class="h-100 position-absolute">
    <!--Card image-->
    <mdb-card-img src="" alt="Card image cap"></mdb-card-img>
    <!--Card content-->

        <h4>Card Title</h4>

      <mdb-card-text> Some quick example text to build on the card title and make up the bulk of the card's

      <a href="#" mdbBtn color="primary" mdbWavesEffect>Button</a>

Please provide me with your code if you still have a problem.

Best, Konrad.

davout free commented 4 years ago

I am copying the example at...

How can this be changed so that data table takes up all the available vertical space? I'd like the pagination control to be positioned relative the bottom of the available space, and the area between the column titles and the pagination row to flex Also with this type of pagination, how the number of rows that are displayed be determined?

Konrad Stępień staff commented 4 years ago

Hi @davout,

You have any example such a table?

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No