css - Zurb Foundation menu - Separate Align for desktop and mobile views -


for zurb menu, want aligned center in desktop view - used following code:

nav.top-bar { text-align:center; } section.top-bar-section { display: inline-block; } 

the problem is, centres menu in mobile mode. mobile mode stay aligned left. possible? thanks!

you need use css media queries. can this:

@media screen , (max-width : 320px) {   nav.top-bar {     text-align:left;   } } 

make sure add style below original style can override it. checkout media queries standard devices


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -