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