html - Fixed navigation bar overlap issue -
i have 2 navigation bars: 1 shows on 1 set of pages , shows on different set of pages (using if... else statement in application.html.erb.) 1 of 2 navigation bars has fixed position @ top , result overlaps following text. solve adding body {margin-top: 25px;}
stylesheet. however, problem pages have different navigation bar, has not fixed position resulting in 25px high white bar top of pages.
how include margin-top
body pages specific navigation bar used?
what adding margin-bottom
specific navbar?
edit: can wrap content in div
, , add dynamically class (same condition have in navbar).
<div class="<%= condition ? first_class : second_class %>">
and add appropriate margins clsass.
Comments
Post a Comment