Ionic CSS Components
- Ionic - Padding
- Ionic - Icons
- Ionic - Grid
- Ionic - Tabs
- Ionic - Select
- Ionic - Range
- Ionic - Radio Button
- Ionic - Checkbox
- Ionic - Toggle
- Ionic - Forms
- Ionic - Cards
- Ionic - Lists
- Ionic - Buttons
- Ionic - Footer
- Ionic - Header
- Ionic - Content
- Ionic - Colors
Ionic Javascript Components
- Ionic - JS Tabs
- Ionic - JS Slide Box
- Ionic - JS Side Menu
- Ionic - JS Scroll
- Ionic - JS Popup
- Ionic - JS Popover
- Ionic - JS Navigation
- Ionic - JS Modal
- Ionic - JS Loading
- Ionic - JS List
- Ionic - JS Keyboard
- Ionic - JS Footer
- Ionic - JS Header
- Ionic - JS Events
- Ionic - JS Forms
- Ionic - JS Content
- Ionic - JS Backdrop
- Ionic - JS Action Sheet
Ionic Advanced Concepts
- Ionic - Splash Screen
- Ionic - Media
- Ionic - Geolocation
- Ionic - Native Audio
- Ionic - In App Browser
- Ionic - Facebook
- Ionic - Camera
- Ionic - AdMob
- Ionic - Cordova Integration
Ionic Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Ionic - Cards
Since mobile devices have smaller screen size, cards are one of the best elements for displaying information that will feel user friendly. In the previous chapter, we have discussed how to inset psts. Cards are very similar to inset psts, but they offer some additional shadowing that can influence the performance for larger psts.
Adding Cards
A default card can be created by adding a card class to your element. Cards are usually formed as psts with the item class. One of the most useful class is the item-text-wrap. This will help when you have too much text, so you want to wrap it inside your card. The first card in the following example does not have the item-text-wrap class assigned, but the second one is using it.
<span class = "card"> <span class = "item"> This is a Ionic card without item-text-wrap class. </span> <span class = "item item-text-wrap"> This is a Ionic card with item-text-wrap class. </span> </span>
The above code will produce the following screen −

Card Header and Footer
In the previous chapter, we have already discussed how to use the item-spanider class for grouping psts. This class can be very useful when working with cards to create card headers. The same class can be used for footers as shown in the following code −
<span class = "card pst"> <span class = "item item-spanider"> Card header </span> <span class = "item item-text-wrap"> Card text... </span> <span class = "item item-spanider"> Card Footer </span> </span>
The above code will produce the following screen −

Complete Card
You can add any element on top of your card. In following example, we will show you how to use the full-image class together with the item-body to get a good-looking windowed image inside your card.
<span class = "card"> <span class = "item item-avatar"> <img src = "my-image.png"> <h2>Card Name</h2> </span> <span class = "item item-body"> <img class = "full-image" src = "my-image.png"> Lorem ipsum dolor sit amet, consectetur adipiscing ept. Pellentesque eget pharetra tortor. Proin quis eros imperdiet, facipsis nisi in, tincidunt orci. Nam tristique ept massa, quis faucibus augue finibus ac. </span> </span>
The above code will produce the following screen −
