html - Navigation Div Affecting Other Nav Elements -
i have several div elements acting main navigation. when page active, have separate div element each height of div higher. seems affect line height/position of other divs on page reason.
here sass
#neo_mainnav { /* main navigation */ position: fixed; bottom: 35px; width: 480px; .nav_text { font: 14pt arial, helvetica, sans-serif; text-align: center; vertical-align: middle; line-height: 35px; } #video_nav { float: left; margin-right: 10px; width: 112.50px; height: 35px; background: #66a9c6; } #video_nav_active { float: left; margin-right: 10px; width: 112.50px; height: 50px; background: #66a9c6; } #gallery_nav { float: left; margin-right: 10px; width: 112.50px; height: 35px; background: #f0a262; } #gallery_nav_active { float: left; margin-right: 10px; width: 112.50px; height: 75px; background: #f0a262; } #floorplans_nav { float: left; margin-right: 10px; width: 112.50px; height: 35px; background: #66a9c6; } #floorplans_nav_active { float: left; margin-right: 10px; width: 112.50px; height: 75px; background: #66a9c6; } #contact_nav { float: left; width: 112.50px; height: 35px; background: #f0a262; } #contact_nav_active { float: left; width: 112.50px; height: 35px; background: #f0a262; } } /* main navigation end */
the html can seen here http://jsfiddle.net/mqcgf/
the entire page can viewed here http://www.neoscapelabs.com/projects/469seventh/gallery.php
i had similar problem recently, , solved assigning (higher) z-index 'active' states/classes. worked me. in case, avoid same struggle had; remember z-indexing works on positioned elements.
Comments
Post a Comment