HTML CSS examples for CSS Widget:Hover to change
Changing a:hover on li:first child
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .b2g_posts_container>ul>li:first-of-type a:hover { background-color:Chartreuse; } </style> <!--from w w w . ja v a2s . c o m--> </head> <body> <span class="b2g_posts_container"> <ul> <br> <br> <b></b> <li> <b> <span class="b2g_list_icon"></span> <span class="b2g_subject"> <a href="">Lore</a> </span> <span class="b2g_dash">L</span> <font class="b2g_byline" size="-2" face="'Palatino Linotype', 'Book Antiqua', Palatino, serif" color="#FF0000"> <span class="b2g_author">Lore<b>Lorem i</b> </span> <span class="b2g_datetime"> <em>Lorem ipsum dolor sit amet, c</em> </span> </font> </b> <br> <br> <b></b> </li> <li> <b> <span class="b2g_list_icon"></span> <span class="b2g_subject"> <a href="">Lore</a> </span> <span class="b2g_dash">L</span> <font class="b2g_byline" size="-2" face="'Palatino Linotype', 'Book Antiqua', Palatino, serif" color="#FF0000"> <span class="b2g_author">Lore<b>Lorem i</b> </span> <span class="b2g_datetime"> <em>Lorem ipsum dolor sit amet, c</em> </span> </font> </b> <ul> <li> <span class="b2g_list_icon"></span> <span class="b2g_subject"> <a href="">Lore</a> </span> <span class="b2g_dash">L</span> <font class="b2g_byline" size="-2" face="'Palatino Linotype', 'Book Antiqua', Palatino, serif" color="#FF0000"> <span class="b2g_author">Lore<b>Lorem i</b> </span> <span class="b2g_datetime"> <em>Lorem ipsum dolor sit amet, c</em> </span> </font> </li> </ul> </li> </ul> </span> </body> </html>