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.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Sven
Всем привет. Столкнулся с проблемой верстки вертикального меню.
Сейчас выполнено в таком духе
.cat_box {
background: #ffffff;
border: 1px solid #f0efef;
border-top: 0px;
color: #00549b;
}
.cat_box a {
color: #00549b;
text-decoration: none;
font: 17px Georgia, "Times New Roman", Times, serif;
display: block;
}
.cat_box a:hover {
color: #ffffff;
text-decoration: none;
font: 17px Georgia, "Times New Roman", Times, serif;
}
.cat_box ul li:hover {
color: #ffffff;
text-decoration: none;
font: 17px Georgia, "Times New Roman", Times, serif;
background: #f58320;
display: block;
padding-top: 5px;
padding-bottom: 5px;
margin-left: 3px;
margin-right: 3px;
padding-left: 37px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
}
.cat_box li li:hover{
color: #f58320;
text-decoration: none;
font: 17px Georgia, "Times New Roman", Times, serif;
display: block;
padding-top: 5px;
padding-bottom: 5px;
}
.cat_box ul {
list-style-type: none;
padding: 0px;
}
.cat_box ul li {
padding-left: 40px;
display: block;
padding-top: 5px;
padding-bottom: 5px;
}
Проблема в следующем. При открытом подменю, когда наводим на один из пунктов подменю - выделяется полностью весь тег <li>
В чем проблема я понимаю, но не получается решить её.
Скрин проблемы
Нужно выделять строку (как сейчас есть), на тег <a> не получается такое прикрутить, получилось лишь на <li>
Заранее всем спасибо.
Edited by SvenLink to comment
Share on other sites
0 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.