Skip to content

Instantly share code, notes, and snippets.

@okuniw
okuniw / applyBootstrapToASPNetMenuControl.html
Created March 17, 2015 02:00
Apply Bootstrap To ASPNet Menu Control
<!-- 1. wrap with a div to force generated menu float -->
<div style="float: left;">
<!--
2. set [SkipLinkText=""] to hide skip link anchor tag (which will cause element shift in chrome)
3. set [IncludeStyleBlock="false"] to disable asp.net menu control's styles, which would conflict with bootstrap styling
4. apply bootstrap css to menu
4.1 CssClass="nav navbar-fix-top"
4.2 StaticMenuStyle-CssClass="nav navbar-nav"
4.3 StaticSelectedStyle-CssClass="active"
4.4 DynamicMenuStyle-CssClass="dropdown-menu"