How can I have a sticky element with Foundation that sticks only on small breakpoints?  data-sticky-on="small" works for small and up
            Asked
            
        
        
            Active
            
        
            Viewed 979 times
        
    5
            
            
        
        jmontenegro
        
- 301
 - 4
 - 10
 
1 Answers
4
            For those interested. I have found this solution when using sass.
//Desktop settings
@include breakpoint(medium) {
    //Disable fixed top bar on mobile
    .sticky {
        position: initial !important;
    }
}
        jmontenegro
        
- 301
 - 4
 - 10
 
- 
                    1You could replace `position: initial` with `static`, since `position: initial` isn't supported by certain versions of IE (source: [Position initial](http://stackoverflow.com/a/15343567/2228912)). – Hakim Mar 04 '17 at 20:03
 - 
                    1I would add `margin-top: 0 !important` as a top-margin was affected to the `sticky` when you scroll. – Hakim Mar 04 '17 at 20:20