.anylinkcss{ position:absolute; visibility: hidden; border: 3px solid #51790F; border-bottom-width: 0; font:normal 12px Verdana; line-height: 18px; z-index: 100; background-color: #51790F; width: 130px; } .anylinkcss a{ width: 100%; display: block; text-indent: 3px; border-bottom: 3px solid #51790F; padding: 1px 0; text-decoration: none; font-weight: bold; text-indent: 5px; color: #FFFFFF; } .anylinkcss a:hover{ /*hover background color*/ background-color: #8ECF22; color: white; } .anylinkcss a:active{ /*on mouse click*/ background-color: #8ECF22; color: #333333; }