Home:ALL Converter>How to make my card height fit with tab-bar

How to make my card height fit with tab-bar

Ask Time:2022-12-09T17:51:45         Author:Meow

Json Formatter

How can I make height responsive with the bottom cause when go to mobile or large screen there will be blank under there. The red color line is the gap of blank between the card and tab-bar i want to make it fit with tab-bar
css

#Border{
  height: 440px;
  width:auto;
}

html

<ion-card id="Border" >
  <component v-bind:is="component"/>
</ion-card>

enter image description here

Author:Meow,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74741396/how-to-make-my-card-height-fit-with-tab-bar
tommybernaciak :

To make an element's height responsive, you can use a combination of the height and min-height CSS properties. The height property sets the fixed height of an element, while the min-height property sets the minimum height of an element, which ensures that the element will always be at least as tall as the specified minimum height, even on smaller screens.\nFor example, to make the #Border element responsive, you could use the following CSS:\n#Border {\n height: auto; /* automatically adjust the height based on the content */\n min-height: 440px; /* set the minimum height to 440px */\n}\n\nYou can also use media queries to specify different values for the height and min-height properties at different screen sizes. For example, you could use the following CSS to set the height of the #Border element to 440px on screens with a minimum width of 600px, and to automatically adjust the height based on the content on smaller screens:\n#Border {\n height: auto; /* automatically adjust the height on small screens */\n min-height: 440px; /* set the minimum height to 440px on small screens */\n}\n\n@media (min-width: 600px) {\n #Border {\n height: 440px; /* set the height to 440px on large screens */\n min-height: auto; /* don't set a minimum height on large screens */\n }\n}\n\nIs this a solution you can use?",
2022-12-09T09:55:35
yy