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
Post a Comment