IONIC Section 4 - 4.16 Finalizing the layout

Click here for more videos available on our youtube channel !

Now we can polish the styling of the expense application with the techniques we already know: the Ionic grid plus a few CSS classes. We start with the grid by reusing the configuration applied to the first row on every other column. On the existing column we used size-md="6" together with offset-md="3" to center it on medium screens. We copy these two attributes onto the new ion-col elements, so all the columns inside the form, the list and the total line have the same width and stay centered.

Once this is in place, we reload the app and add a sample invoice of 4 euros to check the result: the layout looks consistent on a wider screen, with the columns nicely aligned in the middle of the page instead of being stretched to the full width.

Centering the total expenses line

The last detail is the "Total expenses" line at the bottom. To center its text horizontally, we go back to the paragraph that wraps the value and we add the text-align attribute set to center (using Ionic's text utility classes). After saving and reloading, the total is now nicely centered under the list of expenses, which makes the screen visually balanced and easier to read.

With these two small adjustments we have a clean and pleasant layout for the expense tracker. The look is intentionally kept basic to ensure good readability and a clear understanding of the structure for everyone following this course. If you want to test your own personalized style — different colors, fonts or paddings — feel free to experiment: the Ionic documentation gives you all the necessary CSS classes and components to do so. That is it for this video, see you in the next one.

Summary

This lesson covers finalizing the Ionic application layout by using grid configuration and CSS techniques previously learned. The instructor demonstrates how to apply consistent grid sizing (size md=6, offset=3) to columns and center content elements like the total expense display. The result is a clean, basic-styled application that prioritizes clarity and comprehension for all learners.

Key points

  • Reuse and apply grid configuration (size md=6, offset=3) consistently across all columns for uniform layout sizing
  • Center content elements (such as total expense) using appropriate HTML centering tags or CSS techniques
  • Apply CSS grid classes systematically to ensure responsive and consistent column behavior across the layout
  • Test the layout with real data entries to verify proper display and alignment
  • Maintain a basic, clear styling approach that ensures visibility and understanding for all learners
  • Use available documentation to extend and customize styles beyond the basic implementation

FAQ

How do we ensure consistent column sizing in the Ionic layout?

By copying the grid configuration (size md=6, offset=3) that was previously learned and applying it to all columns throughout the application.

What is the recommended approach for centering the total expense display?

Place the content between HTML centering tags to apply centering to the expense total element.

What styling philosophy is recommended in this lesson?

Use basic, clear styling that prioritizes visibility and comprehension for all learners, with the flexibility to customize further using the available documentation if needed.