Floating CSS-I'm probably doing something wrong - css-float

I'm a newbie in HTML/CSS and i don't know why when i resize my window for less than 480px width, the third "pack" doesn't also float to the left.
Any help would be much appreciated.
Thank you!
http://codepen.io/anon/pen/EaymKP?editors=110
.packages{
width:92%;
margin:0 auto;
}
.pack{
margin-left:-0.483091%;
width:25.483091%;
background-color:#e0e0e0;
border-radius:5px;
float:left;
position: relative;
z-index: 1;
}
.pack ul li:first-child{
border-top:none;
}
.pack ul{
list-style-type: none;
text-align: center;
}
.pack ul li {
border-top:1px solid #ffffff;
font:normal 0.83875em Arial,sans-serif;
color:#797979;
height:18px;
padding:13px 0;
}
.pack ul li a{
display:block;
text-decoration: none;
color:#ffffff;
font:bold 1.118125em Arial,sans-serif;
width:72.985781%;
height:29px;
background-color:#575757;
border-radius:20px;
text-align: center;
padding-top:10px;
margin:0 auto;
}
.pack ul li.last-child{
border-radius: 0 0 5px 5px;
border-bottom:1px solid #e0e0e0;
padding:30px 0;
height:29px;
}
.pack.third_column ul li.last-child{
height:29px;
padding:38px 0;
}
.pack .column_top h1,h2{
color:#ffffff;
}
.pack .column_top h1{
font:bold 1.3975em Arial,sans-serif;
padding-top:4px;
}
.pack .column_top h2{
font:bold 1.1475em Arial,sans-serif;
margin-top:-6px;
}
.pack .column_top h2 span{
font:bold 2.1875em Arial,sans-serif;
}
.column_top{
height:75px;
border-radius:5px 5px 0 0;
text-align: center;
position: relative;
z-index: 4;
}
.column_top sup{
font-size: 1.5em;
}
.first_column{
background-color:#cbcbcb;
}
.first_column .column_top{
background:url(../images/top_bg_grey.png) repeat-x;
}
.pack.first_column .column_top h1{
color:#e0e0e0;
font:bold 1.40625em Arial,sans-serif;
padding:10px 30px 10px 30px;
}
.pack.first_column ul li{
border-top:1px solid #a2a2a2;
color:#5c5c5c;
}
.pack.lateral{
box-shadow:-4px 0px 10px -5px #000;
}
.pack.lateral .column_top{
background:url(../images/top_bg_blue.png) repeat-x;
}
.pack.third_column{
background:#ffffff;
box-shadow: 0 0 10px #000;
z-index: 5;
}
.pack.third_column .column_top{
background:transparent url(../images/green_shape.png) no-repeat;
width:100.54%;
height:98px;
top:-20px;
left:-1px;
}
.pack.third_column ul li:first-child{
margin-top: -22px;
border-top: none;
}
.pack.third_column ul li{
border-top:1px solid #dadada;
}
.pack.third_column ul li a{
background-color:#e43a22;
}
#media screen and (min-width:320px) and (max-width:480px){
.pack{
width:50%;
margin-top:20px;
}
.pack.third_column .column_top{
background:transparent url(../images/green_shape.png) no-repeat;
background-size: 100%;
height:75px;
position:static;
}
.pack.third_column ul li:first-child{
margin-top: 0;
}
.media ul li{
padding-left: 0;
}
#img_videos,#img_photos,#img_news,#img_schools{
padding-right: 0;
}
}
}
<div class="packages">
<div class="pack first_column">
<div class="column_top">
<h1>Pes</h1>
</div>
<ul>
<li>Mo</li>
<li>Mo</li>
<li>Eqt</li>
<li>Cnt</li>
<li>Ole</li>
<li>Tes</li>
<li>Gs</li>
<li class="last-child"><img src="images/arrow.png" alt="arrow"/></li>
</ul>
</div>
<div class="pack lateral second_column">
<div class="column_top">
<h1>Sivkage</h1><h2><sup>$</sup><span></span>0<sub>/mo</sub></h2>
</div>
<ul>
<li>1</li>
<li>1</li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li class="last-child">SIGN UP</li>
</ul>
</div>
<div class="pack third_column">
<div class="column_top">
<h1>Gage</h1><h2><sup>$</sup><span>9</span><sub>/mo</sub></h2>
</div>
<ul>
<li>2</li>
<li>2</li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/no.png" alt="no"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li class="last-child">SIGN UP</li>
</ul>
</div>
<div class="pack lateral">
<div class="column_top">
<h1>Pre</h1><h2><sup>$</sup><span>1</span><sub>/mo</sub></h2>
</div>
<ul>
<li>Unlimited</li>
<li>Unlimited</li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li><img src="images/yes.png" alt="yes"/></li>
<li class="last-child">SIGN UP</li>
</ul>
</div>
</div>

Your problem is that you have a fixed height on your li-elements.
.pack ul li {
border-top:1px solid #ffffff;
font:normal 0.83875em Arial,sans-serif;
color:#797979;
height:18px;
padding:13px 0;
}
Remove it. If you want your packs to have equal height you can add min-height to it:
.pack{
margin-left:-0.483091%;
width:25.483091%;
background-color:#e0e0e0;
border-radius:5px;
float:left;
position: relative;
z-index: 1;
min-height:570px;
}

Meanwhile, I replaced border-top:none for the first li in the pack with 1px transparent and it worked.

Related

How to create drop menu from every li?

I have a problem with dropmenu. I created dropmenu from li:YOU and I want to create dropmenu from li: VIEW and HELP, but every dropmenu is below YOU. I don't know what I should to do that every dropmenu was below YOU, VIEW and HELP. I tried many ways but everything failed. And I have ask, I want to pubblish my question but show information that I have to add more detail.
*{
margin:0;
padding:0;
box-sizing:border-box;
}
body {
text-align: center;
background: #e0e0e0;
padding-bottom: 200px;
}
nav{
height:100px;
display:flex;
font-size:15px;
align-items:center;
justify-content:center;
text-transform:uppercase;
background-color:blue;
width:100%;
position:relative;
}
nav ul{
display:flex;
}
nav ul li{
list-style:none;
}
nav ul li a{
text-decoration:none;
color:black;
position:relative;
letter-spacing:2px;
padding:20px 20px;
margin:20px 0;
font-weight:bold;
background-color:green;
}
.dropOut .triangle{
width:0;
height:0;
position:absolute;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid red;
top: -8px;
left: 50%;
margin-left: -8px;
}
.dropdownContain{
width:160px;
position:absolute;
margin-top:20px;
left:50%;
margin-left: -80px;
}
.dropOut{
width:160px;
background-color:yellow;
position:relative;
opacity:0;
}
.dropOut ul {
text-align:center;
padding: 10px 0;
display:block;
}
.dropOut ul li {
text-align: center;
width:160px;
padding: 12px 0 10px 0;
margin: 0px ;
color: red;
}
.dropOut ul li:hover {
background: #0D74FB;
}
nav ul li a:hover{
color:white;
}
ul li:hover a { color: white; }
ul li:hover .dropdownContain { top: 65px; }
ul li:hover .underline { border-bottom-color: #777; }
ul li:hover .dropOut { opacity: 1; margin-top: 8px; }
<nav>
<ul>
<li>View</li>
<li>You
<div class="dropdownContain">
<div class="dropOut">
<div class="triangle"></div>
<ul>
<li>Plan</li>
<li>Gallery</li>
<li>Contact</li>
<li>f1</li>
</ul>
</div>
</div>
</li>
<li>Help <div class="dropdownContain1">
<div class="dropOut">
<div class="tringle"></div>
<ul>
<li>Plan</li>
<li>Service</li>
<li>Contact</li>
<li>gallery</li>
</ul>
</div>
</div>
</li>
</ul>
</nav>

how to make materializecss center navbar?

I want to make my menu's center on the navbar using materializecss
My HTML code:
<div class="navbar-utility theme">
<ul class="right">
<li>
<a href="#" id="navbar-search-trigger">
<i class="material-icons">search</i>
</a>
</li>
<li>
<a href="#" id="navbar-full-screen">
<i class="fa fa-arrows-alt tiny"></i>
</a>
</li>
<li>
<a class="dropdown-button" href="#!" data-activates="dropdown1">
Dropdown
<i class="material-icons right">arrow_drop_down</i>
</a>
</li>
</ul>
</div>
My CSS code is below:
.navbar-utility{
-webkit-box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.8);
-moz-box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.8);
box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.8);
width: 100%;
position: fixed;
top: 64px;
text-align: center;
}
.navbar-utility ul.right{
float: left;
clear: both;
margin:0px auto;
text-align:center;
}
but this doesn't seem to work. Any help would be appreciated.
You just try this code..
<div id="menu">
<ul>
<li>Tab one</li>
<li>Tab two</li>
<li>Tab three</li>
<li>Tab four</li>
</ul>
</div>
#menu {
float:left;
width:100%;
background:#fff;
border-bottom:4px solid #000;
overflow:hidden;
position:relative;
}
#menu ul {
clear:left;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
left:50%;
text-align:center;
}
#menu ul li {
display:block;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
right:50%;
}
#menu ul li a {
display:block;
margin:0 0 0 1px;
padding:3px 10px;
background:#ddd;
color:#000;
text-decoration:none;
line-height:1.3em;
}
#menu ul li a:hover {
background:#369;
color:#fff;
}
#menu ul li a.active,
#menu ul li a.active:hover {
color:#fff;
background:#000;
font-weight:bold;
}

Why doesn't the margin-bottom property work?

The error can be found in this image... I need the white-colored list in the image to go up by several pixels, but when I try to use the margin-bottom function, a space appears between the grey-colored list (id is leftmenu) and the white-colored list (id is newsmenu) instead. Is there any way I can fix this issue? I've tried using several code from answers to similar questions on this website, but even that doesn't seem to work.
HTML:
<!DOCTYPE html>
<html manifest="developer.manifest">
<head>
<link rel="stylesheet" href="css/style.css" type="text/css">
<title>Website</title>
</head>
<body>
<div id="container">
<header>
<h1>Website</h1>
</header>
<nav id="menu">
<ul>
<li class="menuitem">HOME</li>
<li class="menuitem">STUFF</li>
<li class="menuitem">STUFF</li>
<li class="menuitem">STUFF</li>
</ul>
</nav>
<nav id="leftmenu">
<h4>Random sentence.</h4>
<ul>
<li>List</li>
<li>List</li>
<li>List</li>
<li>List</li>
<li>List</li>>
</ul>
<br></br>
</nav>
<img class="displayed" src="images/kurtar.jpg" alt="Stuff">
<nav id="rightmenu">
<h4>Random Sentence.</h4>
<ul>
<li>List</li>
<li>List</li>
<li>List</li>
<li>List</li>
<li>List</li>
</ul>
<br></br>
</nav>
<!--This is the list that I want margin-bottom to move up.-->
<div id="newsmenu">
<h4>Latest MOCing News:</h4>
<ul>
<li>[NEW] 5/7/2016: Website undergoing development...</li>
</ul>
<br></br>
</div>
</div><!--container end-->
<div class="clear"></div>
</body>
</html>
CSS:
*{
margin: 0 auto 0 auto;
}
body{
font-size:13px;
font-family:"Verdana";
color:#ffffff;
background-color:#ffffff;
background-image:url(../images/background.jpg);
background-repeat:repeat-x;
}
a{
text-decoration:none;
}
p{
margin:10px 0;
}
/* Main styles */
#container{
width:1000px;
overflow:auto;
}
.displayed {
margin: 15px 0 250px 40px;
border-width:7px;
border-color:#606060;
border-style:outset;
}
header{
font-weight:bold;
font-family:"Georgia";
width:98.6%;
height:85px;
background:#ffffff;
border-width:7px;
border-color:#DFDFDF;
border-style:outset;
margin-top:20px;
padding-top:15px;
}
header h1{
color:#D4AF37;
font-size:43px;
padding:10px 0 0 0;
text-align:center;
}
aside {
color:white;
}
nav#menu{
display:block;
clear:both;
width:98.5%;
height:30px;
background:#494949;
border-width:7px;
border-color:#606060;
border-style:outset;
margin-top:15px;
}
nav#menu ul{
padding:0;
padding-top:7px;
width:960px;
}
nav#menu li{
padding:0;
display:inline;
}
nav#menu li a,#menu li a:visited{
color:#ffffff;
text-decoration:none;
text-align:center;
font-size:13px;
font-weight:bold;
padding:0 13px 0 13px;
}
nav#leftmenu{
margin-top:15px;
width:190px;
float:left;
background:#C0C0C0;
border-width:7px;
border-color:#B6B6B6;
border-style:outset;
padding: 15px 20px 0 10px;
}
nav#leftmenu ul{
list-style:none;
padding:0;
}
nav#leftmenu li{
list-style:none;
padding:15px 0 8px 0;
border-bottom:1px dashed #000000;
}
nav#leftmenu a,nav#leftmenu a:visited{
color:#000000;
text-decoration:none;
font-size:12px;
}
nav#leftmenu h4{
color:#000000;
padding:0;
padding-bottom:8px;
border-bottom:#000000 solid 2px;
font-size:12px;
}
nav#rightmenu{
margin-top:15px;
width:190px;
float:right;
background:#C0C0C0;
border-width:7px;
border-color:#B6B6B6;
border-style:outset;
padding: 15px 20px 0 10px;
}
nav#rightmenu ul{
list-style:none;
padding:0;
}
nav#rightmenu li{
list-style:none;
padding:15px 0 8px 0;
border-bottom:1px dashed #000000;
}
nav#rightmenu a,nav#rightmenu a:visited{
color:#000000;
text-decoration:none;
font-size:12px;
}
nav#rightmenu h4{
color:#000000;
padding:0;
padding-bottom:8px;
border-bottom:#000000 solid 2px;
font-size:12px;
}
div#newsmenu{
width:190px;
float:left;
background:#ffffff;
border-width:7px;
border-color:#DFDFDF;
border-style:outset;
padding: 15px 20px 0 10px;
position:relative;
margin-bottom:200px;
}
div#newsmenu ul{
list-style:none;
padding:0;
}
div#newsmenu li{
list-style:none;
padding:15px 0 8px 0;
border-bottom:1px dashed #000000;
color:blue;
font-size:11px;
}
div#newsmenu a,div#newsmenu a:visited{
color:#000000;
text-decoration:none;
font-size:12px;
}
div#newsmenu h4{
color:#000000;
padding:0;
padding-bottom:8px;
border-bottom:#000000 solid 2px;
font-size:12px;
}
Use margin-top instead, like all the rest of the objects in your document
div#newsmenu {
width: 190px;
float: left;
background: #ffffff;
border-width: 7px;
border-color: #DFDFDF;
border-style: outset;
padding: 15px 20px 0 10px;
position: relative;
/*margin-bottom: 200px; Delete this one*/
margin-top:15px;
}
This will align your object to the rest. To make it go up more by several pixels, lower the 15px as much as you want.
Are you talking about this space? (see below image)
If yes, then remove margin-top: 15px from nav#leftmenu, or make it 0.
nav#leftmenu {
background: #c0c0c0 none repeat scroll 0 0;
border-color: #b6b6b6;
border-style: outset;
border-width: 7px;
float: left;
margin-top: 0; /* Changes needs to be make here. */
padding: 15px 20px 0 10px;
width: 190px;
}

Links Moving Left on Hover - CSS

When I hover on the links inside the menu they are moving some pixels to the right.
The image below shows whats is happening:
HTML:
<ul id="menu">
<li>4 columns<!-- Begin 4 columns Item -->
<div class="dropdown_4columns"><!-- Begin 4 columns container -->
<div class="col_4">
<h3>This is a heading title</h3>
</div>
<div class="col_1">
<ul>
<li>ThemeForest</li>
<li>GraphicRiver</li>
<li>ActiveDen</li>
<li>VideoHive</li>
<li>3DOcean</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>NetTuts</li>
<li>VectorTuts</li>
<li>PsdTuts</li>
<li>PhotoTuts</li>
<li>ActiveTuts</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>FreelanceSwitch</li>
<li>Creattica</li>
<li>WorkAwesome</li>
<li>Mac Apps</li>
<li>Web Apps</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>Design</li>
<li>Logo</li>
<li>Flash</li>
<li>Illustration</li>
<li>More...</li>
</ul>
</div>
<div class="col_4">
<h2>This is a heading title</h2>
</div>
<div class="col_1">
<ul>
<li>ThemeForest</li>
<li>GraphicRiver</li>
<li>ActiveDen</li>
<li>VideoHive</li>
<li>3DOcean</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>NetTuts</li>
<li>VectorTuts</li>
<li>PsdTuts</li>
<li>PhotoTuts</li>
<li>ActiveTuts</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>FreelanceSwitch</li>
<li>Creattica</li>
<li>WorkAwesome</li>
<li>Mac Apps</li>
<li>Web Apps</li>
</ul>
</div>
<div class="col_1">
<ul>
<li>Design</li>
<li>Logo</li>
<li>Flash</li>
<li>Illustration</li>
<li>More...</li>
</ul>
</div>
</div><!-- End 4 columns container -->
</li><!-- End 4 columns Item -->
CSS:
/* Navigation Bar */
#menu {
list-style:none;
width:940px;
/* width:100%; */
margin:30px auto 0px auto;
height:43px;
padding:0px 20px 0px 20px;
/* Rounded Corners */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
/* Background color and gradients */
background: #c92424;
background: -moz-linear-gradient(top, #dd4343, #9e1c1c);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#dd4343), to(#9e1c1c));
/* Borders
border: 1px solid #002232;
-moz-box-shadow:inset 0px 0px 1px #edf9ff;
-webkit-box-shadow:inset 0px 0px 1px #edf9ff;
box-shadow:inset 0px 0px 1px #edf9ff; */
}
#menu li {
float:left;
text-align:center;
position:relative;
padding: 4px 10px 4px 10px;
margin-right:20px;
margin-top:7px;
border:none;
}
#menu li:hover {
height:21px;
margin-top:1px;
text-align:center;
padding: 11px 9px 11px 9px;
/* Background color and gradients */
background: white;
/* background: -moz-linear-gradient(top, #e56e6e, #e56e6e);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e56e6e), to(#e56e6e)); */
}
#menu li a {
font-family:Arial, Verdana, sans-serif;
font-weight: bold;
font-size:14px;
line-height:21px;
color: #EEEEEE;
display:block;
outline:0;
text-decoration:none;
text-shadow: 1px 1px 1px #000;
}
#menu li:hover a {
color:#161616;
text-shadow: 1px 1px 1px #FFFFFF;
}
#menu li .drop {
padding-right:21px;
}
/* Drop Down */
.dropdown_2columns,
.dropdown_4columns {
margin:11px auto;
float:left;
position:absolute;
left:-999em; /* Hides the drop down */
text-align:left;
padding:10px 5px 10px 5px;
border:1px solid #c92424;
border-top:none;
/* Gradient background
background:#F4F4F4;
background: -moz-linear-gradient(top, #EEEEEE, #BBBBBB);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEEEEE), to(#BBBBBB));
/* Rounded Corners */
-moz-border-radius: 0px 5px 5px 5px;
-webkit-border-radius: 0px 5px 5px 5px;
border-radius: 0px 5px 5px 5px;
}
.dropdown_2columns {width: 280px;}
.dropdown_4columns {width: 560px;}
#menu li:hover .dropdown_2columns,
#menu li:hover .dropdown_4columns{
left:-1px;
top:auto;
}
/* Columns */
.col_1,
.col_2,
.col_4{
display:inline;
float: left;
position: relative;
margin-left: 5px;
margin-right: 5px;
}
.col_1 {width:130px;}
.col_2 {width:270px;}
.col_4 {width:550px;}
/* Drop Down Content Stylings */
#menu p, #menu h2, #menu h3, #menu ul li {
font-family:Arial, Verdana, sans-serif;
font-weight: bold;
line-height:21px;
font-size:12px;
text-align:left;
text-shadow: 1px 1px 1px #FFFFFF;
}
#menu h2 {
font-size:21px;
font-weight:400;
letter-spacing:-1px;
margin:7px 0 14px 0;
padding-bottom:14px;
border-bottom:1px solid #666666;
}
#menu h3 {
font-size:14px;
margin:7px 0 14px 0;
padding-bottom:7px;
border-bottom:1px solid #888888;
}
#menu p {
line-height:18px;
margin:0 0 10px 0;
}
#menu li:hover div a {
font-size:12px;
color:#015b86;
}
#menu li:hover div a:hover {
color:#029feb;
}
#menu li ul {
list-style:none;
padding:0;
margin:0 0 12px 0;
}
#menu li ul li {
font-size:12px;
line-height:24px;
position:relative;
text-shadow: 1px 1px 1px #ffffff;
padding:0;
margin:0;
float:none;
text-align:left;
width:130px;
}
#menu li ul li:hover {
background:none;
border:none;
padding:0;
margin:0;
}
I tried to chance the padding and the margin at #menu li ul li:hover without any success. Does anyone have an idea of what is happening?
You have to remove the text-align:center; from #menu li:hover.
Here is the jsfiddle.
You probelm is text-align:center in #menu li:hover. A quick fix is to change it to the child selector instead of the descendatnt selector:
#menu>li:hover
Demo

Jquery-tab abnormally block my div

I am facing the problem that the jquery-tab block my Main menu class="oe_wrapper" that is located on the nav bar id="NavBar". I want the oe_menu can overlay the tabs. Is there any problem with this code? thanks in advance.
http://jsfiddle.net/Sp7Mk/
mark-up:
<div id="NavBar" style="width: 500px; height: 100px; background-color: blue;">
<div class="oe_wrapper" style="background-color: red;">
<ul id="oe_menu" class="oe_menu">
<li>
Main Menu
<div>
<ul>
<li class="oe_heading">
My Account
</li>
<li>Account Information</li>
</ul>
<ul>
<li class="oe_heading">
Forms
</li>
<li>F-1</li>
<li>F-2</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
<div id="searchTab">
<ul>
<li>Address</li>
<li>Other</li>
<li>Disabled</li>
</ul>
<div id="tabsAddll">
<p>Address</p>
</div>
<div id="tabsOther">
<p>Other</p>
</div>
<div id="tabsDis">
<p>Disabled</p>
</div>
</div>
js:
$(document).ready(function(){
$( "#searchTab" ).tabs({ disabled: [ 2 ] });
});
css:
*{ margin: 0 auto;}
body {
background:#000000;
}
ul.oe_menu{
list-style:none;
position:relative;
float:right;
clear:both;
left: -400px;
}
ul.oe_menu > li{
padding-bottom:2px;
float:left;
position:relative;
}
ul.oe_menu > li > a{
display:block;
background-color:#717171;
color:#ffffff;
text-decoration:none;
font-weight:bold;
font-size:12px;
/* a link */
width:90px;
height:16px;
padding:1.3px;
margin:1px;
text-shadow:0px 0px 1px #000;
/*opacity:0.8;*/
text-align: center !important;
}
ul.oe_menu > li > a:hover,
ul.oe_menu > li.selected > a{
background:#fff;
color:#101010;
opacity:1.0;
}
.oe_wrapper ul.hovered > li > a{
background:#fff;
text-shadow:0px 0px 1px #FFF;
}
ul.oe_menu div{
position:absolute;
left:1px;
background:#fff;
width:668px;
padding:30px;
}
ul.oe_menu div ul li a{
text-decoration:none;
color:#222;
padding:2px 2px 2px 4px;
margin:2px;
display:block;
font-size:12px;
}
ul.oe_menu div ul.oe_full{
width:100%;
}
ul.oe_menu div ul li a:hover{
background:#000;
color:#fff;
}
ul.oe_menu li ul{
list-style:none;
float:left;
width: 150px;
margin-right:10px;
text-align: left;
}
li.oe_heading{
color:#aaa;
font-size:16px;
margin-bottom:10px;
padding-bottom:6px;
border-bottom:1px solid #ddd;
width: 150px;
text-align: left;
}
In the line
<div id="NavBar" style="width: 500px; height: 100px; background-color: blue;">
You are explicitly declaring a height for the navbar of 100px, so after 100px it's space in the DOM ends and the next element starts to render. Try changing the height to 175px, for me that put it right underneath your other menu.

Resources