When hovering, focus, visited, activation, and the pseudo-selector link should display a picture. Visited does not work. I do not know the reason. Like statistical pseudo-selectors go to dynamic (by the rule).
a.menu:link { background: #fff url("4.png") center right no-repeat; } a.menu:visited { background: #fff url("2.png") center right no-repeat; } a.menu:hover { background: #fff url("1.png") center right no-repeat; } a.menu:focus:hover { background: #fff url("3.png") center right no-repeat; } a.menu:active:hover { background: #fff url("5.png") center right no-repeat; } a { text-decoration: none; font-size: 30px; padding-right: 25px; padding-left: 15px; } <!DOCTYPE html> <html> <head> <meta charset="utf-8" http-equiv="Content-Type" content="text/html"> <link href="style2.css" rel="stylesheet" type="text/css"> <title></title> </head> <body> <a href="#" id="lar" class="menu">Головна</a> <a href="#" class="menu">Автор</a> <a href="#" class="menu">Новини</a> <a href="#" class="menu">Ресурси</a> </body> </html>
Изображение <img> Ctrl+G- ߊߚߤߘ