html - tag bumping content down 60px only when < 980px? -



html - <header> tag bumping content down 60px only when < 980px? -

when cut down browser window size less 980px in width, content bumps downwards 60px

what appears happening <header> tag gets kicked downwards (i don't know tag doing there) below navbar

i set breadcrumbs style of display:none, including or excluding them doesn't seem create difference.

not sure maintain consistent on different screen sizes

example: http://www.wordisnear.org/

ps - using web2py cms called pynuke, may using own particular bootstrap layouts, there no s.o. tag pynuke (yet).

when viewport wider 980px, navbar has position: fixed (via .navbar-fixed-top class) -- notice when scroll down, navbar remains in position @ top of screen. in case, 60px top margin of <header> element overlaps navbar, header takes no space in main content section. note, though not using header, top margin necessary here -- otherwise, content bumped , obscured navbar (of course, rid of header , instead set top margin on content container directly).

when screen size drops, there media query changes navbar position: static (presumably navbar doesn't remain on screen during scrolling given space @ premium on smaller screens). in case, 60px top margin of <header> element no longer overlaps navbar , instead takes space @ top of main content.

if you're not using header or breadcrumbs, maybe rid of them. then, add together 60px top margin main content div, , set media query remove top margin when width goes below 980px (so when navbar switches fixed static, margin disappear).

html css twitter-bootstrap-3 web2py

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -