Jump to content
  • 0

в ie не меняется цвет фона ссылки в меню


orchanin
 Share

Question

В ie цвет фона меняется только когда наводиш курсор мыши на саму ссылку а нужно что бы пункты меню не только выгледели достойно но и работали когда как кнопка! Как заставить ie менять цвет фона при наведении не только на ссылку?

вот так оно выглядит у меня!

 .markermenu{
list-style-type: none;
behavior: url(csshover.htc);
margin: 5px 0;
padding: 0;
width:180px;
list-style:none;

}

.markermenu li a{
background: no-repeat 5px center;
background-color: #710000;
font-weight:bold;
color: #ffffff;
display: block;
padding: 3px 0;
padding-left: 20px;
text-decoration: none;
list-style-type: none;
list-style:none;
border-left: 10px;
border-right: 10px;

}
html>body .markermenu li a {
width: auto;
}

* html .markermenu li a{ /*IE only. Actual menu width minus left padding of LINK (20px) */
}

.markermenu li a:visited; .markermenu li a:active{
color: #00014e;
}

.markermenu li a:hover{
color: #ffffff;
background-color: #B50000;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy