[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Выпадающее меню
sanchahous
Есть основное меню, и есть саб меню которое нужно отображать только при наведение на ссылку из основного меню. Пробовал гуглить - пока не получается. Инстукция в картинке.
мой HTML:
<div id="header">
<header>
<div
class="header-container">
<div
class="languages">
<ul
class="languages-list">
<!--*******HEADER-LANGUAGE********-->
<li class="lang-style">РУС</li>
<li
class="lang-style">|</li>
<li
class="lang-style">ENG</li>
</ul>
</div>
<div
class="header-logo">
<img
class="logoImg" src="img/arthall_logo.png" alt="header-logotype">
</div>
<div
class="logo-a">
<img
src="img/logo_a.png" alt="LogotypeA">
</div>

<!--*******HEADER-MENU********-->
<div class="header-menu">
<ul>
<li><a
href="about.html">О НАС</a></li>
<li><a
href="projects.html">ПРОЕКТЫ</a></li>
<li><a
href="#">АРТЕФАКТЫ</a></li>
<li><a
href="#">ПУБЛИКАЦИИ</a></li>
<li><a
href="contacts.html">КОНТАКТЫ</a></li>
</ul>
</div>
<div
class="social">
<img
class="logo-facebook" src="img/facebook.png" alt="facebbokLogotype">
<img
class="logo-twitter" src="img/twitter.png" alt="twitterLogotype">
</div>
<div
class="clear">
</div>
</div>
</header>
</div>

<!--*******HEADER-BOTTOM-MENU********-->
<div class="header-bottom-list">
<ul>
<li><a
href="gallery.html">ДОМА</a></li>
<li>
АПАРТАМЕНТЫ</li>
<li><a
href="honka.html">ДЕРЕВЯННЫЕ ДОМА «HONKA»</a></li>
<li></li>
</ul>
</div>

Мой CSS
a {
text-decoration: underline;
color: #D8D0C3;
}

/* *************||HEADER||***************** */
#header {
width: 100%;
margin: 0 auto;
background: #d8d0c3;
height: 186px;
margin-bottom: 0;
}

.header .header-menu {
min-width: 74%;

margin-left: 8%;
}

/* *************||HEADER-PROJECTS||***************** */

.header .social {
margin-left: 0;

}

.header-container {
width: 80%;
margin: 0 auto;
}

/* *************||MINIHEADER||***************** */
.mini-header .header-logo {
padding: 40px;
}
.mini-header .header-menu {
float: left;

margin-left: 20%;
margin-right: 10%;
}

.mini-header .social {
margin-left: 1%;

float: left;
}

/* *************HEADER-LANG-LIST***************** */

.languages {
padding-top: 10px;
padding-bottom: 9px;
height:16px;
float: right;
margin-right: 6%;
}

.languages-list {
width: 100%;
padding-top: 5px;
padding-bottom: 9px;
height:16px;
}

.languages ul li {
display: inline;
}

.lang-style {
font-size: 14px;
color: #fffbf5;
text-transform: uppercase;
}

.header-logo {
width: 17%;
clear: both;
margin: 0 auto;
padding-bottom: 40px;
}

.logo-img{
padding-top: 15px;
margin: 0px auto;
}

/* *************HEADER-MENU-LIST***************** */

.header-menu {
float: left;
min-width: 25%;
margin-left: 21%;
}

.header-menu ul li {
display:inline;
}

.header-menu ul li a{
font-size: 14px;
font-family: "Circe";
color: #FFFCF5;
margin-left: 47px;
text-decoration: none;
}

.social {
float: left;
width: 6%;
margin-left: 25%;
}

.logo-facebook {
margin-right: 14px;
height: 25px;
}

.logo-twitter {
width: 25px;
height:24px;
}

.clear {
clear: both;
}

/* *************HEADER-BOTTOM-MENU-LIST***************** */

.headerBottomBackground {
background: #625e57;
width: 100%;
}

.header-bottom-list {
width: 100%;
background: #625e57;
height: 54px;
opacity: 0.9;
position: absolute;
z-index: 1;
}

.header-bottom-list ul li {
margin-left: 30px;
display: inline;
color: #D8D0C3;
line-height: 1.929;
text-align: center;
}
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.