The below mentioned code uses css3 to develop drop down menu .I am unable to solove a problem which crops up while i click sub2 h4 menu it disappeare below body text can anybody help .Thanks in advance.
<style>
body,,container,h1,navmenu,ul,sub1,sub2,darrow,rarrow,header,leftnav,rightnav,footer {
margin:0px;
padding:0px;
}
#container {
position:absolute;
background-color:#FFF;
left: 136px;
top: 1px;
width: 850px;
margin-bottom:50px;
background-image:url(/img/img_2.jpg);
background-position:center;
margin-top:10px;
margin-left:125px;
height: 150px;
}
#header {
border:-3px solid;
border-color:#000;
border-radius:25px;
}
#body {
width:800px;
height:100px;
background:#0F0;
position:relative;
}
#div:hover
{
width:800px;
}
body {
margin-left:100px;
font-family:Verdana, Geneva, sans-serif;
background-color:#FDFA6C;
padding:10px;
text-shadow:2px 2px 3px #bad3ed;
margin-bottom:10px;
width:800px;
height:1200px;
margin-top:300px;
text-justify:auto;
text-wrap:supress;
.p {
font-size:16px;
text-align: justify;
text-wrap:supress;
}
}
h1 {
text-align:center;
border-bottom:6px solid #009;
margin-bottom: 50px;
}
/*Rules for Navigation Menu*/
/*===========================*/
#navmenu {
margin-top:30px;
padding-right:20px;
background-color: #036;
color: #344251;
text-shadow:200px 200px 200px #bad3ed;
text-emphasis:disc;
font-weight:100;
font-family:Tahoma, Geneva, sans-serif;
color: #344251;
position:absolute;
}
ul#navmenu,ul.sub1,ul.sub2 {
list-style-type:none;
font-size:9pt;
background-color:#036;
padding-top:0px;
padding-right:8px;
margin-top:20px;
border:2px solid;
border-radius:12px;
position:absolute;
}
ul#navmenu li {
width: 90px;
text-align:center;
position: relative;
float:left;
padding-top:2px;
padding-right:50px;
padding-bottom:2px;
}
ul#navmenu a {
text-decoration:none;
display:block;
width:120px;
height:15px;
line-height:15px;
background-color:#000;
border:4px solid;
border-radius:25px;
border-color: #069;
border-bottom-right-radius:10px;
}
ul#navmenu .sub1 li {
border:#003366;
padding-right:50px;
}
ul#navmenu .sub1 a {
margin-top: 5px;
border:2px solid;
border-radius:15px;
}
ul#navmenu .sub2 a {
margin-left:0px;
border:2px solid;
border-radius:25px;
padding-right:20px;
transition:all;
}
ul#navmenu li:hover > a {
background-color: #CFC;
}
ul#navmenu li:hover a:hover {
background-color: #FF0;
}
ul#navmenu ul.sub1 {
display: none;
position: absolute;
top:16px;
left:0px;
}
ul#navmenu ul.sub2 {
display:none;
position: absolute;
top:0px;
left:126px;
}
ul#navmenu li:hover .sub1 {
display:block
}
ul#navmenu .sub1 li:hover .sub2 {
display:block;
position:absolute;
overflow-style:marquee-block;
transition-property:all;
}
.darrow {
font-size:12pt;
position:relative;
top:-20px;
right:0px;
left:60px;
}
.rarrow {
font-size: 12pt;
position:relative;
top:0px;
right:0px;
margin-left:30px;
padding-left:30px;
}
#body {
margin-left:10px;
font-family:Verdana, Geneva, sans-serif;
background-color:#FDFA6C;
text-decoration:none;
text-shadow:2px 2px 3px #bad3ed;
margin-left:120px;
width:900px;
white-space-collapse:collapse;
margin-top:0px;
text-align: justify;
}
#leftnav {
align:left;
margin-left:10px;
position:relative;
left: 2px;
top: 413px;
height: 200px;
width: 100px;
background-color: #CCFF33;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: small-caps;
text-transform: lowercase;
color: #666;
text-decoration: blink;
background-image: url(/img/Logo.png);
letter-spacing: normal;
text-align: left;
vertical-align: text-top;
word-spacing: normal;
float: left;
padding-bottom: 30px;
border-top-width: medium;
border-right-width: medium;
border-bottom-width: medium;
border-left-width: medium;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #C3F;
border-right-color: #C3F;
border-bottom-color: #C3F;
border-left-color: #C3F;
cursor: text;
filter: BlendTrans(Duration=2);
page-break-before: right;
page-break-after: always;
overflow: scroll;
visibility: visible;
z-index: auto;
}
#rightnav {
align: left;
margin-left:400px;
margin-right:30px;
margin-top:30px;
background-size:30px;
font-style:inherit;
position:absolute;
left: 760px;
top: 379px;
width: 189px;
height: 92px;
}
#footer {
position:absolute;
margin-top:100px;
margin-left: 450px;
top: 3100px;
height: 36px;
left: 55px;
width: 358px;
}
</style>
}