| 
 Не могу разобраться a:hover Добрый день! Помогите разобраться с a:hover . Нужно, чтобы при наведении на пункт меню он заливался цветом, чтобы цвет заливал пункт меню больше чем его ширина. Вот примеры: - то что сейчас есть :  - то что нужно сделать:  #menu a:hover { Код: background-color:black; | 
| 
 
#menu a {
   padding: 10px;
}
 | 
| 
 Цитата: 
 
<!DOCTYPE html>
<html>
<head>
<!--
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" type="text/css" href="tmp.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
-->
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}
ul {
	list-style: none;
}
li {
	float: left;
	overflow: hidden;
}
li:hover {
	background-color: red;
}
p {
	margin-top: 5px;
	margin-left: 10px;
	margin-right: 10px;
	padding: 5px;
	color: #ffffff;
	background-color: green;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<ul>
	<li>
		<p>Item 0</p>
	</li>
	<li>
		<p>Item 1</p>
	</li>
	<li>
		<p>Item 2</p>
	</li>
</ul>
</body>
</html>
 | 
| 
 Благодарю. | 
| Часовой пояс GMT +3, время: 07:06. |