There is a list in the form of a menu:
<ul class="menu"> <li> <a href="#">fond</a> </li> <li> <a href="#">blago</a> </li> <li> <a href="#">knigi</a> </li> </ul>
And cascade table:
<style> ul { margin-top:20px; list-style:none; } li { float:left; width:80px; height:30px; line-height:30px; background:#6495ED; text-align:center; margin-left:1px; border-radius:10px 10px 0 0; } ul li a { text-decoration:none; color:black; font-size:19px; } ul li:hover { margin-top:-20px; height:50px; line-height:50px; background:#000080; color:red; font-weight:bold; } ul li a:hover { color:red; font-weight:bold; } </style>
When you hover over a menu item, the text color should be red, but for some reason it remains black. It turns red only when you hover over a link, and I need the text to turn red, even when the cursor does not touch the link.
Tell me what to do?