html - CSS Selector (if not null) + nested -


i searching

.class[height!= "0"] .span 

every time try nest like

div.item.class[height="0"] didn't work.

maybe can me? :)

here more code:

html

<div class="barwrapper">                                         <ul id ="tabs" class="nav-bar" data-tabs="tabs">                                             <li class="speed" style="height: 0%;"><a href="#riesenslalom" data-toggle="tab"><span></span></a></li>                                             <li class="speed" style="height: 0%;"><a href="#speed" data-toggle="tab"><span></span></a></li>                                             <li class="mixrace act" style="height: 100%;"><a href="#mix_race" data-toggle="tab"><span></span></a><em>1056</em></li>                                             <li class="mixrace act" style="height: 5%"><a href="#freeride" data-toggle="tab"><span></span></a><em>5</em></li>                                             <li class="mixrace act" style="height: 70%"><a href="#foto_rallye" data-toggle="tab"><span></span></a><em>539</em></li>                                             <li class="mixrace act" style="height: 10%"><a href="#slalom" data-toggle="tab"><span></span></a><em>20</em></li>                                             <li class="speed" style="height: 0%"><a href="#buckelpiste" data-toggle="tab"><span></span></a></li>                                             <li class="speed" style="height: 0%;"><a href="#flug" data-toggle="tab"><span></span></a></li>                                             <li class="mixrace act" style="height: 90%"><a href="#carving" data-toggle="tab"><span></span></a><em>800</em></li>                                             <li class="mixrace act" style="height: 100%"><a href="#wandern" data-toggle="tab"><span></span></a><em>1200</em></li>                                             <li id="line"></li>                                         </ul>                                        </div> 

css

div.item.topstatistic .topstatistic-content .first .left .statisticwrapper .barwrapper ul > li span{position:absolute; bottom:0; width: 100%; height:40px; text-align: center; } div.item.topstatistic .topstatistic-content .first .left .statisticwrapper .barwrapper ul > .speed span{background: url("icon_statistic_speed.png") no-repeat transparent;} div.item.topstatistic .topstatistic-content .first .left .statisticwrapper .barwrapper ul > .mixrace:not([height=0]) span{background: url("icon_statistic_active_mixrace.png") no-repeat transparent;} 

css has :not() pseudo selector. .class:not([height=0]) should work. http://caniuse.com/#search=:not


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -