javascript - CSS MegaMenu Full Width in IE 10/11 -


i working on superfish menu custom styles make menu full width , responsive. project works on google chrome , firefox, not in ie 11.

take in sample

* { margin:0; padding:0; }  html { height: 100%; width: 100%; }  body { font-size:13px; color:#777; text-align:center; min-width:250px; position:relative; }  body > .wrapper { position:relative; }  .page { margin: 0 auto; padding: 0 0 0; text-align: left; width: 900px; }    .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; }  .sf-menu { position: relative; float: none; width: 100%; display: table; font-family: tahoma, helvetica, arial, sans-serif; }  .sf-menu li { position: relative; -webkit-transition: background .2s; -moz-transition: background .2s; -o-transition: background .2s; transition: background .2s; }  .sf-menu ul { position: absolute; padding-top: 15px; padding-bottom: 15px; display: none; top: 100%; left: 0; z-index: 99; min-width: 12em; }  .sf-menu li.last > ul { left: inherit; right:0; }  .sf-menu > li { float: none; display: table-cell; }  .sf-menu li:hover > ul, .sf-menu li.sfhover > ul { display: block; }  .sf-menu { display: block; position: relative; zoom: 1; }  .sf-menu ul ul { top: 0; left: 100%; }    /*** default skin ***/  #menu-icon, .sf-menu-phone, .sf-menu-block { display: none; }  .sf-menu { border:1px solid #ddd; border-bottom-color:#b0afaf; background:#e4e5e6; box-shadow:0 3px 6px rgba(0,0,0,0.08); }  .sf-menu > li { border-right: 1px solid #ddd; vertical-align: middle; }  .sf-menu > li:last-child { border-right: 0; }  .sf-menu > li:last-child > ul ul { left: auto; right: 100%; }  .sf-menu li { color: #333; text-decoration: none; padding: 0; }  .sf-menu > li > > span { display: block; font-size: 1.4em; line-height: 18px; cursor: pointer; padding: 18px 5px; text-align: center; }  .sf-menu li ul span { white-space: normal; }  .sf-menu > li.parent > span { margin-right: 0; }  .sf-menu > li.sfhover > a,   .sf-menu> li > a:hover,   .sf-menu > li.active > { background: #fff; color: #000; }  .sf-menu ul { background-color: #fff; border-top:5px solid #515151; box-shadow:0 4px 10px 0 rgba(150, 150, 150, 1); }  .sf-menu > li > a:before,   .sf-menu li li.parent > a:before { font-size: 14px; color:#ddd; float: right; }  .sf-menu > li > a:before { line-height: 54px; margin-right: 10px; }  .sf-menu li li { display:block; background: none; font-size: 13px; line-height: 16px; color: #777; padding:4px 20px; }  .sf-menu li li > a:hover,   .sf-menu li li.sfhover > a,   .sf-menu li li.active > a,   .sf-menu li li > a:hover:before,   .sf-menu li li.sfhover > a:before,   .sf-menu li li.active > a:before { color: #333; }    .sf-arrows .sf-with-ul { padding-right: 0.5em; }  .sf-arrows .sf-with-ul:after { content: ''; position: absolute; top: 50%; right: 1em; margin-top: -3px; height: 0; width: 0; border: 5px solid transparent; border-top-color: #000; border-top-color: rgba(0,0,0,1); }  .sf-arrows > li > .sf-with-ul:focus:after,   .sf-arrows > li:hover > .sf-with-ul:after,   .sf-arrows > .sfhover > .sf-with-ul:after { border-top-color: #fff; }  .sf-arrows ul .sf-with-ul:after { margin-top: -5px; margin-right: -3px; border-color: transparent; border-left-color: #000; border-left-color: rgba(0,0,0,1); }  .sf-arrows ul li > .sf-with-ul:focus:after,   .sf-arrows ul li:hover > .sf-with-ul:after,   .sf-arrows ul .sfhover > .sf-with-ul:after { border-left-color: #999; }    /* megamenu */  .mega-pos-01 { position: initial !important; }  .mega-pos-02 { position: relative !important; }  .megamenu { }  .megamenu > li.last-col > ul,  .megamenu > li.last-col > ul ul { left: auto; right: 100%; }  .megamenu li { float:left; padding: 0; text-align:left; margin-left:2%; }  .megamenu li ul li { float:none; width: auto; margin-left:0; }  .megamenu li ul span { white-space: nowrap; }  .mega-wfull { width: 100% !important; }  .mega-w200 { width: 200px; }  .mega-w250 { width: 250px; }  .mega-w300 { width: 300px; }  .mega-w350 { width: 350px; }  .mega-w400 { width: 400px; }  .mega-w450 { width: 450px; }  .mega-w500 { width: 500px; }  .mega-w550 { width: 550px; }  .mega-w600 { width: 600px; }  .mega-w650 { width: 650px; }  .mega-w700 { width: 700px; }  .mega-col2 li { width: 48%; }  .mega-col3 li { width: 31.3333%; }  .mega-col4 li { width: 23%; }  .mega-col5 li { width: 18%; }  .mega-col6 li { width: 14.6666%; }  .mega-col7 li { width: 12.2857%; }  .mega-col8 li { width: 10.5%; }
<body>      <div class="wrapper">          <div class="page">              <ul id="nav" class="sf-menu">                  <li class="level0 level-top parent first"><a href="#" target="_self" class=" level-top "><span>category 01</span></a>                      <ul class="level0   ">	                          <li class="level1 first  "><a href="#" target="_self" class=""><span>cabelos</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>olhos</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>lábios</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>corpo</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>pescoço</span></a></li>                          <li class="level1 first last  last-col"><a href="#" target="_self" class=""><span>unhas</span></a></li>                      </ul>                  </li>                  <li class="level0 level-top parent mega-pos-01"><a href="#" target="_self" class=" level-top "><span>category 02</span></a>                      <ul class="level0 megamenu mega-wfull mega-col6">                          <li class="level1 parent first  "><a href="#" target="_self" class=" "><span>subcategoria 01</span></a>                              <ul class="level1   ">                                  <li class="level2 first last  "><a href="#" target="_self" class=""><span>face</span></a></li>                              </ul>                                        </li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 41</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 02</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 03</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 04</span></a></li>                          <li class="level1 parent  last-col"><a href="#" target="_self" class=" "><span>subcategoria 05</span></a>                              <ul class="level1   ">	                                  <li class="level2 parent first  "><a href="#" target="_self" class=" "><span>subcategoria 37</span></a>                                      <ul class="level2   ">	                                          <li class="level3 first  "><a href="#" target="_self" class=""><span>subcategoria 34</span></a></li>                                          <li class="level3 first last  "><a href="#" target="_self" class=""><span>subcategoria 33</span></a></li>                                      </ul>                                                </li>                                  <li class="level2 parent first last  "><a href="#" target="_self" class=" "><span>subcategoria 38</span></a>                                      <ul class="level2   ">	                                          <li class="level3 first  "><a href="#" target="_self" class=""><span>subcategoria 36</span></a></li>                                          <li class="level3 first last  "><a href="#" target="_self" class=""><span>subcategoria 35</span></a></li>                                      </ul>                                                </li>                              </ul>                          </li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 06</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 07</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 08</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 09</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 10</span></a></li>                          <li class="level1  last-col"><a href="#" target="_self" class=""><span>subcategoria 11</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 12</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 13</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 14</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 15</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 16</span></a></li>                          <li class="level1  last-col"><a href="#" target="_self" class=""><span>subcategoria 17</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 18</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 19</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 20</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 21</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 22</span></a></li>                          <li class="level1  last-col"><a href="#" target="_self" class=""><span>subcategoria 23</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 24</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 25</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 26</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 27</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 28</span></a></li>                          <li class="level1  last-col"><a href="#" target="_self" class=""><span>subcategoria 29</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 30</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 31</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>subcategoria 32</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>feminino</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>masculino</span></a></li>                          <li class="level1 first last  last-col"><a href="#" target="_self" class=""><span>desodorante</span></a></li>                      </ul>                  </li>                  <li class="level0 level-top  "><a href="#" target="_top" class=" level-top"><span>category 03</span></a></li>                  <li class="level0 level-top  "><a href="#" target="_top" class=" level-top"><span>category 04</span></a></li>                  <li class="level0 level-top parent last  "><a href="#" target="_self" class=" level-top "><span>category 05</span></a>                      <ul class="level0   ">	                          <li class="level1 first  "><a href="#" target="_self" class=""><span>outros</span></a></li>                          <li class="level1  "><a href="#" target="_self" class=""><span>gel de banho</span></a></li>                          <li class="level1 parent first last  "><a href="#" target="_self" class=" "><span>loção corporal</span></a>                              <ul class="level1   ">	                                  <li class="level2 first  "><a href="#" target="_self" class=""><span>subcategoria 40</span></a></li>                                  <li class="level2 first last  "><a href="#" target="_self" class=""><span>subcategoria 39</span></a></li>                              </ul>                          </li>                      </ul>                  </li>              </ul>          </div>      </div>       </body>

to test, mouseover menu item "category 02" , see how work on chrome , ff not in ie.

i'll appreciate help!

thanks lot!

changing position css attribute mega-pos-01 class elements initial static seems have done trick me. pity, hoping jquery maneuvering.

.mega-pos-01 { position: static !important; } 

http://jsfiddle.net/cg0bnpjo/


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -