Why nav title is left-align on iOS platform?


#1

nav title is left-align on iOS platform run in chrome on mac


#2

When you change the OS from Android to iOS (or iOS to Android) you need to refresh your browser for the correct CSS to take effect.


#3

I did not change platform. I just create one blank template and ionic serve it.


#4

Do you have Chrome Developer Tools open? If yes, do you have it set to display as a phone? If yes, you should see a drop down menu in the top left of your window which allows you to select which device you want to emulate, it typically defaults to Nexus 5X, you need to select an iOS device then refresh your page and it should display properly.


#5

thanks, i will have a try


#6

Did you add the -t option for platform?
ionic serve -t ios

And for android: ionic serve -t android

or for both ionic serve -l


#7

@guoxuan Material Design is the new default for desktop web. If you want to get the iOS look instead then run ionic serve -t ios as @sveinla suggested . For all flags check out the ionic serve docs.


#8

thank you all

Cheers