ul#menu li ul { display: none; position: absolute; top: 36px; left: 0; background: #5f950b; width: 200px; font-size: 14px; line-height: 100%; z-index: 99; border: 1px solid #fff; } ul#menu li ul li { width: 118px; background: none; } ul#menu li ul li a { display: block; line-height: 1.2; } ul#menu li ul li a:hover { background: #D4D4D3; }
Помогите, пожалуйста, разобраться в чем моя ошибка
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
Serge
У меня не получается сделать выпадающее меню.
Оно почему то упорно не хочет выпадать.
Вот код:
ul#menu {
background: transparent url('images/menu.png') repeat-x 0 0;
width: 90%;
overflow: hidden;
z-index: 100;
list-style: none;
}
ul#menu li {
position: relative;
float: left;
}
ul#menu li a {
background: transparent url('images/separator.gif') no-repeat 100% 1px;
float: left;
font-size: 15px;
color: #fff;
height: 65px;
padding: 10px 17px 0 15px;
}
ul#menu li a:hover, ul#menu li.current-cat a {
background:transparent url('images/menu-hover.png') repeat-x 100% 1px;
text-decoration: none;
}
/* sub-menu */
ul#menu li ul {
display: none;
position: absolute; top: 36px; left: 0;
background: #5f950b;
width: 200px;
font-size: 14px;
line-height: 100%;
z-index: 99;
border: 1px solid #fff;
}
ul#menu li ul li {
width: 118px;
background: none;
}
ul#menu li ul li a {
display: block;
line-height: 1.2;
}
ul#menu li ul li a:hover {
background: #D4D4D3;
}
Помогите, пожалуйста, разобраться в чем моя ошибка
Edited by SergeLink 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.