zurb foundation - CSS Styles to only One Class -


using zurb's foundation, i'm attempting add own styles navbar, working great. unfortunately, zurb's responsive navbar changes when viewing container becomes smaller. when this, adds second class nav element.

before responsive change:

<nav class="top-bar"> 

after responsive change:

<nav class="top-bar expanded"> 

my custom styles terrible expanded navbar, , wondering if there way apply styles when element contained solely 1 class , not multiple. know it's easy apply styles when element has 2 or more classes, can exclude one?

thanks!

you can use selector style in css:

.top-bar:not(.expanded){ //your style 

}


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -