html - show content when hover -


i need change style if hover on media-body checkbox should show up

.media-body ul:hover input[type="checkbox"]  {     display: block;      } 

html:

<div class="media-body">     <ul>         <li><a style="float:left;">{{inventory.manufacturer}} {{inventory.model}}</a>         <li><input style="float:right; display: none;" type="checkbox" ng-model="inventory.checked" ng-checked="inventory.checked"></li><br/>     </ul> </div> 

inline css has higher priority outline, you're changes applied still overridden inline styles.

the simplest trick make work set !important css.

.media-body ul:hover input[type="checkbox"]  {     display: block !important;      } 

jsfiddle: http://jsfiddle.net/wgqt5/

anyway right way put inline styles outside of html.

moreover html not valid. should

<div class="media-body">     <ul>         <li><a style="float:left;">{{inventory.manufacturer}} {{inventory.model}}</a></li> <!-- </li> missing -->         <li><input style="float:right; display: none;" type="checkbox" ng-model="inventory.checked" ng-checked="inventory.checked"/></li><!-- <br/> invalid here  , slash @ , of input missing-->     </ul> </div> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -