Ok, so I have looked around for the past two days to try and fix this problem, and I cannot find a solution. I am trying to create a site using asp.net and am attempting to center the navbar. Now, it is almost centered, my onnly problem is that there is a gap on the left side of the nav bar, here is a pic to show:
I have tried practically everything from changing float style, display, padding, margin, and text indents, and nothing is working. can someone please help? Thank you.
nav {
font-family:'Electrolize',sans-serif;
font-size: 0.7em;
height: 60px;
margin: 0px auto;
padding: 0;
position: relative;
width: 70%;
}
nav ul li {
background-color: rgb(192, 64, 0);
border-radius:10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
-o-border-radius:10px 10px 0 0;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-moz-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-o-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-webkit-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
color:#eee;
float: left;
list-style:none;
margin-left: 0 !important;
padding: 0;
text-align: center;
text-indent: 0;
text-decoration:none;
transition:all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition:all 0.2s ease-in-out;
-webkit-transition:all 0.2s ease-in-out;
vertical-align: baseline;
width: 20%;
}
<form id="form1" runat="server">
<div>
<header>
<img class="headerImg" runat="server" src="~/Resources/header_1.png" />
</header>
<nav>
<ul>
<li><a href="home.aspx" >Home</a></li>
<li><a href="#" >About Us</a></li>
<li><a href="#" >Policies</a></li>
<li><a href="#" >FAQ's</a></li>
<li><a href="#" >Contact Us</a></li>
</ul>
</nav>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder>
</div>
</form>
Add padding 0(zero) to the ul
nav {
font-family:'Electrolize',sans-serif;
font-size: 0.7em;
height: 60px;
margin: 0px auto;
padding: 0;
position: relative;
width: 70%;
}
nav ul{
padding: 0px;
}
nav ul li {
background-color: rgb(192, 64, 0);
border-radius:10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
-o-border-radius:10px 10px 0 0;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-moz-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-o-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
-webkit-box-shadow:2px 2px 4px rgba(0, 0, 0, 0.9) inset;
color:#eee;
float: left;
list-style:none;
margin-left: 0 !important;
padding: 0;
text-align: center;
text-indent: 0;
text-decoration:none;
transition:all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition:all 0.2s ease-in-out;
-webkit-transition:all 0.2s ease-in-out;
vertical-align: baseline;
width: 20%;
}
<form id="form1" runat="server">
<div>
<header>
<img class="headerImg" runat="server" src="~/Resources/header_1.png" />
</header>
<nav>
<ul>
<li><a href="home.aspx" >Home</a></li>
<li><a href="#" >About Us</a></li>
<li><a href="#" >Policies</a></li>
<li><a href="#" >FAQ's</a></li>
<li><a href="#" >Contact Us</a></li>
</ul>
</nav>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder>
</div>
</form>
Related
How to i reduce the height of the background color to be almost the same height as the link and i tried to use height on CSS but it didn't work
CSS
.login {
color: #4CAF50;
background-color: #a0ce4e;
}
.login a {
cursor: pointer;
display: inline-block;
background: #a0ce4e;
border-radius: 1px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
padding: 10px 15px;
color: #ffffff;
text-decoration: none;
-webkit-transition: 0.3s ease;
transition: 0.3s ease;
}
.login a:hover {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
HTML
<div class="login">
<ul class="nav navbar-nav">
<li class="active">
<a class="page-scroll" href="#">Login</a>
</li>
</ul>
</div>
Remove padding:
.login a {
padding: 0px; /* or 1.. */
}
Those look like bootstrap classes, so I would say you likely need to remove padding and/or margins from navbar-nav.
You can do this by adding your own class to it and using that to add overriding styles. For example:
CSS:
.navbar-nav.navbar-nospace {
margin: 0px;
padding: 0px;
}
HTML:
<ul class="nav navbar-nav navbar-nospace">
Roughly a week ago all my divs were properly aligned on the same line.
I'm not sure what I did to cause them to stack. "fbox" is set to inline-block but its acting as a block.
I really didn't want to ask a question about it, but I am losing time by getting frustrated about this.
<div class="fbox" id="breast">
<span class="title">Breast Procedures</span>
<ul>
<li>Breast Augmentation</li>
<li>Breast Lift</li>
<li>Breast Reduction</li>
<li>Gynecomastia Surgery</li>
<li>Breast Implant</li>
<li>Nipple Surgery</li>
<li>Breast Asymmetry</li>
</ul>
<span class="read">View Descriptions</span>
</div>
<div class="fbox" id="facial">
<span class="title">Facial Procedures</span>
<ul>
<li>Brow Lift</li>
<li>Face Lift</li>
<li>Eyelid Lift</li>
<li>Nose Surgery</li>
<li>Facial Implant</li>
<li>Neck Lift</li>
<li>Earlobe Repair</li>
<li>Ear Reshaping</li>
<li>Chin Implant</li>
<li>Chin Augmentation</li>
</ul>
<span class="read">View Descriptions</span>
</div>
<div class="padding">
<div class="fbox" id="body">
<span class="title">Body Procedures</span>
<ul>
<li>Tummy Tuck</li>
<li>Liposuction</li>
<li>Mommy Makeover</li>
<li>Butt Lift</li>
<li>Body Contouring</li>
<li>Labiaplasty</li>
<li>Brachioplasty</li>
<li>Thigh Lift</li>
<li>Upper Body Lift</li>
</ul>
<span class="read">View Descriptions</span>
</div>
</div>
<div class="fbox" id="surgery">
<span class="title">Non-Surgical Procedures</span>
<ul>
<li>Fat Injection</li>
<li>Latisse</li>
<li>Botox</li>
<li>Dermabrasion</li>
<li>Chemical Peels</li>
</ul>
<span class="read">View Descriptions</span>
</div>
CSS: (Main code at bottom. .fbox, .read, .title)
.controls{
display:none;
}
.col span_6 {
text-color:black;
color:black;
}
.subheader{
text-color:black;
color:black;
}
.callbox{
background-color:white;
border-style:solid;
border-width:1px;
border-color:black;
display:block;
text-align:center;
height:75px;
width:1116.95px;
line-height:75px;
font-size:22px;
font-weight:bold;
}
.toggle h3 a{
color:black;
}
body .toggle > div {
padding: 10px 14px;
border-top: 0px;
border:1px solid #D2691E;
display: none;
background-color: #fff!important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
-o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
/** .receptionist{
border:1px solid #D2691E;
display:block;
padding:5px;
border-radius:5px;
}
**/
.menu-item{
font-weight:600;
}
.hr{
display: block;
height: 1px;
border: 1px solid #8CAAD2;
margin: 1em 0;
padding: 0;
}
.settingsFront{
height:10px;
}
.settingsMessage{
height:150px;
}
.settingsMessageMain{
height:200px;
}
/** Start here ! **/
.title{
font-size:16px;
margin:0 auto;
text-align:center;
font-weight:600;
width: 100%;
position: absolute;
top: 0;
left: 0;
background-color:white;
background:white;
font-family:Futura;
-webkit-transition: box-shadow 1s ease;
-moz-transition: box-shadow 1s ease;
-o-transition: box-shadow 1s ease;
-ms-transition: box-shadow 1s ease;
transition: box-shadow 1s ease;
-moz-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
-webkit-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
}
.main-content ul li{
list-style-type:none;
}
.main-content ul{
margin:0 auto;
}
.fbox{
width: 250px;
height: 300px;
background: rgb(250, 250, 250);
-moz-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
-webkit-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
display:inline-block;
vertical-align:top;
text-align:center;
margin:0 auto;
position:relative;
}
.read{
width: 100%;
left: 0;
bottom: 0;
background-color:white;
background:white;
font-size:22px;
height:40px;
line-height:40px;
font-family:Futura;
-webkit-transition: box-shadow 1s ease;
-moz-transition: box-shadow 1s ease;
-o-transition: box-shadow 1s ease;
-ms-transition: box-shadow 1s ease;
transition: box-shadow 1s ease;
-moz-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
-webkit-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
}
.read a{
color:#7e99bd;
}
.wpcf7-form-control-wrap{
background:white;
background-color:white;
}
#media (max-width:767px){
.fbox{
width: 200px;
height: 250px;
background: rgb(250, 250, 250);
-moz-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
-webkit-box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
box-shadow: 0px 0px 5px 1px rgb(139, 139, 139);
display:inline-block;
font-size:12px;
}
}
Fiddle
Your third div.fbox is wrapped in a parent div with class .padding which is causing a break in the display: inline-box rule. Remove the div.padding element around the third div.fbox element and your div tags will line up again.
#Travis the fbox is working as inline-block if you want to know more information go through this.
If you want all three boxes inline-block, you will need all three in the same div
Been trying to figure out for a couple of days now why the logo in the header which you can see here: https://gyazo.com/5eb973585ce428f9d34bc7bd46aec14c isn't centered with the rest of the page like with the arrow below it in the picture.
#font-face {
font-family: 'cabinregular';
src: url('font1/cabin-regular-webfont.woff2') format('woff2'), url('font1/cabin-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
#font-face {
font-family: 'open_sansregular';
src: url(font2/opensans-regular-webfont.woff2) format("woff2"), url(font2/opensans-regular-webfont.woff) format("woff");
font-weight: 400;
font-style: normal;
}
#font-face {
font-family: 'edoregular';
src: url(font3/edo-webfont.woff2) format("woff2"), url(font3/edo-webfont.woff) format("woff");
font-weight: 400;
font-style: normal;
}
body {
margin: 0;
padding: 0;
}
.header {
background-color: white;
width: 100%;
height: 70px;
position: fixed;
z-index: 999;
-webkit-box-shadow: 0px -1px 16px -5px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px -1px 16px -5px rgba(0, 0, 0, 0.75);
box-shadow: 0px -1px 16px -5px rgba(0, 0, 0, 0.75);
}
.headeritems {
text-align: center;
}
.navigationleft {
vertical-align: top;
display: inline-block;
}
.navigationleft ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.navigationleft li {
display: inline;
}
.navigationleft li a {
color: #BEBEBE;
display: inline-block;
padding: 24px 40px 0px 40px;
text-decoration: none;
font-family: cabinregular;
font-size: 16px;
transition: color .20s ease-in-out;
-moz-transition: color .20s ease-in-out;
-webkit-transition: color .20s ease-in-out;
}
.navigationleft li a:hover {
color: #00C4FF;
}
.logo {
display: inline-block;
padding: 10px 20px 0px 20px;
}
.navigationright {
vertical-align: top;
display: inline-block;
}
.navigationright ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.navigationright li {
display: inline;
}
.navigationright li a {
color: #BEBEBE;
display: inline-block;
padding: 24px 40px 0px 40px;
text-decoration: none;
font-family: cabinregular;
font-size: 16px;
transition: color .20s ease-in-out;
-moz-transition: color .20s ease-in-out;
-webkit-transition: color .20s ease-in-out;
}
.navigationright li a:hover {
color: #00C4FF;
}
.container {
background-image: url(images/container.jpg);
background-repeat: no-repeat;
width: cover;
height: 650px;
}
.content {
margin: 0 auto;
width: 650px;
padding-top: 250px;
color: white;
font-family: edoregular;
font-size: 100px;
text-shadow: 3px 2px 1px rgba(0, 0, 0, 0.5);
}
.arrow1 {
margin: 0 auto;
width: 60px;
margin-top: 170px;
transition: padding-top .20s ease-in-out;
-moz-transition: padding-top .20s ease-in-out;
-webkit-transition: padding-top .20s ease-in-out;
}
.arrow1:hover {
padding-top: 20px;
}
.contentabout {
margin: 0 auto;
width: 650px;
height: 550px;
padding-top: 100px;
font-family: edoregular;
text-align: justify;
}
.contentabout h1 {
height: 50px;
color: #2D2D2D;
border-bottom: 1px solid #EEEEEE;
}
.contentabout p {
padding-top: 30px;
font-family: open_sansregular;
font-size: 15px;
}
.arrow2 {
margin: 0 auto;
width: 60px;
margin-top: 145px;
transition: padding-top .20s ease-in-out;
-moz-transition: padding-top .20s ease-in-out;
-webkit-transition: padding-top .20s ease-in-out;
}
.arrow2:hover {
padding-top: 20px;
}
.containerportfolio {
height: 720px;
background-image: url(images/containerportfolio.jpg);
}
.contentportfolio {
margin: 0 auto;
width: 709px;
padding-top: 70px;
font-family: edoregular;
color: white;
text-shadow: 3px 2px 1px rgba(0, 0, 0, 0.5);
}
.contentportfolio h1 {
height: 50px;
border-bottom: 1px solid white;
}
.portfolioitems {
height: 400px;
border-bottom: 1px solid white;
}
.portfolioitems p {
text-align: center;
font-family: open_sansregular;
font-size 30px;
color: white;
padding-top: 100px;
}
.byggfram {
width: 220px;
height: 124px;
opacity: 0.7;
display: inline-block;
margin-top: 5px;
-webkit-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
transition: opacity .20s ease-in-out;
-moz-transition: opacity .20s ease-in-out;
-webkit-transition: opacity .20s ease-in-out;
}
.byggfram:hover {
opacity: 1;
}
.classie {
width: 220px;
height: 124px;
opacity: 0.7;
display: inline-block;
margin-left: 20px;
-webkit-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
transition: opacity .20s ease-in-out;
-moz-transition: opacity .20s ease-in-out;
-webkit-transition: opacity .20s ease-in-out;
}
.classie:hover {
opacity: 1;
}
.anderssonsvensson {
width: 220px;
height: 124px;
opacity: 0.7;
display: inline-block;
margin-left: 20px;
-webkit-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 56px -1px rgba(0, 0, 0, 0.75);
transition: opacity .20s ease-in-out;
-moz-transition: opacity .20s ease-in-out;
-webkit-transition: opacity .20s ease-in-out;
}
.anderssonsvensson:hover {
opacity: 1;
}
.arrow3 {
margin: 0 auto;
width: 60px;
margin-top: 85px;
transition: padding-top .20s ease-in-out;
-moz-transition: padding-top .20s ease-in-out;
-webkit-transition: padding-top .20s ease-in-out;
}
.arrow3:hover {
padding-top: 20px;
}
.containercontact {
height: 650px;
}
.contact {
margin: 0 auto;
width: 650px;
padding-top: 70px;
}
.titlecontact {
text-align: center;
}
.contact h1 {
font-family: edoregular;
color: #2D2D2D;
height: 50px;
}
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<link href="css/style.css" rel="stylesheet">
<link href="css/images/favicon.ico" rel="shortcut icon">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Loom | Home</title>
</head>
<body>
<a id="home" name="home"></a>
<a id="home" name="top"></a>
<div class="header">
<div class="headeritems">
<div class="navigationleft">
<ul>
<li>
Home
</li>
<li>
About
</li>
</ul>
</div>
<div class="logo">
<a href="#home">
<img src="css/images/loomlogo.svg">
</a>
</div>
<div class="navigationright">
<ul>
<li>
Portfolio
</li>
<li>
Contact
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
Loom Is Lemon
<div class="arrow1">
<a href="#about" class="smoothScroll">
<img src="css/images/arrowdown.svg" style="width:60px">
</a>
</div>
</div>
</div>
<a id="about" name="about"></a>
<div class="containerabout">
<div class="contentabout">
<h1>Greetings from Sweden!</h1>
<p>Hello</p>
<div class="arrow2">
<a href="#portfolio" class="smoothScroll">
<img src="css/images/arrowdown2.svg" style="width:60px">
</a>
</div>
</div>
</div>
<a id="portfolio" name="portfolio"></a>
<div class="containerportfolio">
<div class="contentportfolio">
<h1>Portfolio</h1>
<div class="portfolioitems">
<div class="byggfram">
<img src="css/images/byggfram.png">
</div>
<div class="classie">
<img src="css/images/classie.png">
</div>
<div class="anderssonsvensson">
<img src="css/images/anderssonsvensson.png">
</div>
<p>More coming soon!</p>
</div>
<div class="arrow3">
<a href="#contact" class="smoothScroll">
<img src="css/images/arrowdown.svg" style="width:60px">
</a>
</div>
</div>
</div>
<div class="containercontact">
<div class="contact">
<div class="titlecontact">
<img src="css/images/loomlogo2.svg">
<h1>Contact Me!</h1>
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="javascript/smoothscroll.js"></script>
</body>
You could try putting:
<center></center>
around the part that isn't centered.
How do i add a dropdown menu for both of my material-icons list? I managed to done the html part. I tried many times on the css by adding dropdown codes but it doesnt work, the dropdown menu get stuck in between the nav bar. Whats happening and what can i do to resolve this?
body {} #nav-main {
width: 1280px;
min-width: 100%;
position: fixed;
top: 0;
left: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.39);
height: 60px;
}
li {
float: left;
}
li a {
display: block;
color: #ffffff;
text-align: center;
padding: 19px 25px;
/*topbottom leftright*/
text-decoration: none;
}
.nav-item5 {
width: 550px;
margin: 15px 60px;
/*topbottom leftright*/
padding: 5px;
}
input[type="search"] {
background: url(../images/search-icon.png) no-repeat #fcfcfc;
border: 1px solid #d1d1d1;
background-size: contain;
padding: 6px 15px 6px 30px;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
input[type="search"]:focus {
width: 300px;
}
i.material-icons {
font-size: 27px;
}
li a:hover {
background-color: rgba(0, 0, 0, 0.50);
}
<ul id="nav-main">
<li>Home
</li>
<li>About
</li>
<li>FAQ
</li>
<li>Contact
</li>
<li>
<form action="action_page.php">
<input type="search" name="savanasearch" placeholder="Search..." class="nav-item5">
</form>
</li>
<li style="float:right">
<i class="material-icons">account_circle</i>
<div class="dropdown">
Welcome
<ul>
<li>Login
</li>
<li>Register
</li>
</ul>
</div>
</li>
<li style="float:right">
<i class="material-icons">favorite_border</i>
<div class="dropdown">
<ul>
<li>Favorites
</li>
<li>Wishlist
</li>
<li>Track Order
</li>
</ul>
</div>
</li>
</ul>
See this example
I've changed a little bit you navbar cause you got a class for each one, an it's not right if you don't need them. Also the size of the search-bar. Check the example. I leave you some examples to let you know the "why?"
.dropdown ul{
z-index: 9;
top: 101%;
position: absolute;
display: none;
}
I can not seem to figure out why my menu does not align properly on the sub dropdowns. They display at the lower edge of its parent cell and it makes trying to navigate through them almost impossible. You have to drop down diagonally just right to get the next menu.
http://imgur.com/zxWcmZf "Screenshot of menu"
I have posted the menu's code below does anything stand out to anyone as to what I am missing? This is my first play with bootstrap. Thanks a million for everyone's time on help with this.
<div class="navbar-wrapper">
<div class="container">
<div class="navbar">
<div class="navbar-inner">
<div class="buttons-container">
</div>
<ul class="blue nav" id="css3-menu">
<li>Home </li>
<li class="dropdown"><a tabindex="-1" class="dropdown-toggle_" data-toggle="dropdown"
href="">Choice 1</a>
<ul class="dropdown-menu">
<li class="dropdown-submenu"><a tabindex="-1" href="#">Choice 1a</a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">Choice 1a1
<ul class="dropdown-menu">
<li><a tabindex="-1" href="">Choice 1a1a</a></li>
<li><a tabindex="-1" href="">Choice 1a1b</a></li>
</ul>
</li>
<li class="dropdown-submenu">Choice 1a2
<ul class="dropdown-menu">
<li><a tabindex="-1" href="">Choice 1a2a</a></li>
<li><a tabindex="-1" href="">Choice 1a2b</a></li>
</ul>
</li>
<li class="dropdown">Choice 1b </li>
</ul>
</li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle_" data-toggle="dropdown" href="">Choice
2</a>
<ul class="dropdown-menu">
<li>Choice 2a</li>
<li>Choice 2b</li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle_" data-toggle="dropdown" href="">Choice
3</a>
<ul class="dropdown-menu">
<li>Choice 3a</li>
<li>Choice 3b</li>
</ul>
</li>
<li>Choice 4 </li>
<li>Choice 5 </li>
</ul>
</div>
</div>
</div>
</div>
EDIT:
Sorry I forgot the CSS don't know what I was thinking. Here is the CSS relating to it. Thanks for the input so far :)
/* css3 menu */
ul#css3-menu{
width: 940px;
min-width: 940px;
margin: 0 auto;
list-style: none;
font-family: 'Open Sans', Arial, "MS Trebuchet", sans-serif;
height: 46px;
padding: 0;
}
ul#css3-menu > li{
display: block;
float: left;
-webkit-transition: background .4s linear;
-moz-transition: background .4s linear;
-ms-transition: background .4s linear;
-o-transition: background .4s linear;
transition: background .4s linear;
<!--[if IE]>
position: relative;
<![endif]-->
}
ul#css3-menu > li:first-child{
border-left: none !important;
-webkit-border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-bottomleft: 4px;
-ms-border-top-left-radius: 4px;
-ms-border-bottom-left-radius: 4px;
-o-border-top-left-radius: 4px;
-o-border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
ul#css3-menu > li:last-child{
border-right: none !important;
}
ul#css3-menu > li > a{
display: block;
padding: 15px 30px;
color: white;
text-decoration: none;
font-weight: 600;
font-weight: bold;
}
/*
ul#css3-menu > li:hover > div{
-webkit-transform: translateY(-80px);
-moz-transform: translateY(-80px);
-ms-transform: translateY(-80px);
-o-transform: translateY(-80px);
transform: translateY(-80px);
}
*/
/*visibility: visible;*/
ul#css3-menu > li > div{
-webkit-transition: -webkit-transform .2s linear;
-moz-transition: -moz-transform .2s linear;
-ms-transition: -ms-transform .2s linear;
-o-transition: -o-transform .2s linear;
transition: transform .2s linear;
text-align: center;
margin: 0 auto;
-webkit-transform: translateY(-60px);
-moz-transform: translateY(-60px);
-ms-transform: translateY(-60px);
-o-transform: translateY(-60px);
transform: translateY(-60px);
width: 37px;
height: 37px;
/*visibility: hidden;*/
margin-bottom: -37px;
z-index: -1;
<!--[if IE]>
margin-top: -60px;
<![endif]-->
}
ul#css3-menu.blue > li > div{
background: url(../img/icons-blue.png) 0 0 no-repeat;
}
.navbar-wrapper {
background: #2773AE;
background-color:#2773AE; filter: progid:DXImageTransform.Microsoft.dropShadow(color=#2773AE, offX=0, offY=0, positive=true);
box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
-webkit-box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
-moz-box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
}
ul#css3-menu.blue{
background: #2773AE;
background-color:#2773AE; filter: progid:DXImageTransform.Microsoft.dropShadow(color=#2773AE, offX=0, offY=0, positive=true);
box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
-webkit-box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
-moz-box-shadow: 0 -10px 8px -10px #074979 inset, 0 10px 8px -10px #074979 inset;
}
ul#css3-menu.blue > li{
border-right: 1px #074979 solid;
border-left: 1px #3e92d0 solid;
height: 46px;
}
ul#css3-menu.blue > li:hover{
background: #074979;
}
It is something in your additional CSS file (that you haven't posted) that is causing this, not the html you posted, nor any of the bootstrap css files. When I test the html you posted (my entire html file below), I get the dropdowns to align as expected: http://imgur.com/XyYV5pE.
You may want to post the CSS you are including so folks can look at what might be causing this -- or simplify your CSS to bare bones and add each part back one by one to track the culprit.
<!DOCTYPE html>
<html lang="en">
<head>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>
</head>
<body>
<!--your exact markup posted in its entirety, unaltered, here-->
</body>