I defined some css,such as the below:
margin: 0px auto;
But it doesn’t work in the ionicframework totally. Who may tell me how to make it work? Thanks!
There are two things to check.
- Using plain CSS
- using SASS
If you are using plain css, then you can directly go and add any kind of css in the
If you are using the sass, then you have to write the custom css in
.scss only. If you wish to have a separate file, then you need to import that file into the
.scss file which was created when you setup
sassin your project using
ionic setup sass.