Should everything be into a grid in the html?


#1

In Ionic, should everything be into a grid? If not, when should grids be used?

Thanks


#2

It’s up to you.
Firstly you could import the bootstrap grid, or skeleton css grid or whatever.
It’s just to manage the different devices your app could be on.
Desktop will probably not be styled as you styled mobile.

So it’s really up to you, you could write your own css for each element too :slight_smile:


#3

There is the Ion-Grid you can use, so no need to import any other framework. As a general rule, the flatter the DOM, the faster the render.

Realistically, I only use it when I need things in a row.


#4

Hi Chris.
Skeleton is about 200 line of CSS and have a larger functionnalities than Ionic grid, this is why I talked about use other framwork.
Also, as far as I know (but I could be wrong), If we don’t use an Ionic components, It won’t be added to the final build, so the DOM will stay intact! :slight_smile:


#5

with the flatter you mean that without ino-grid its flatter than with it?