html - How should I change css style of fixed element to not crossing scrollbar -


i have fixed(position property) element called nav-map. want set max width element.

.nav-map{    position:fixed;    left: 0;    width: 100%;    top: 0;    overflow: hidden; } 

but in case covers scrollbar , want avoid that.

enter image description here

please, me solve issue

full source code: http://codepen.io/borispinus/pen/adpewa

the problem that, scrollbars part of div, , nice, if can bring div below fixed nav.

so in <body> give padding-top of height of fixed nav.

body {   padding-top: 40px; } 

this how fixed navs. how has been done. :) see how looks here:

fiddle: http://codepen.io/anon/pen/qyqbzq


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -