Is there anywhere where I can find just the CSS for the navbar for bootstrap? I am trying to integrate a bootstrap navbar with my xenforo theme, however if I am to use the entire stylesheet for bootstrap, that would break all the other style in the forums. Therefore I would need just the CSS style for the navbar as to just use the navbar styling, and not everything else. Because the navbar is used in the bootstrap.css close to 500 times, I am wondering if there is a simpler way to obtain all the styling? Thank you.
Go to Bootstrap Customize, uncheck all the components and place a check next to the components whose CSS you only want to download, which in your case would be navs and the navbar, and then click on the Download button at the bottom.
Once the zipped file has been downloaded, unzip it and open bootstrap.css file inside a code-editor and simply copy the CSS related to that of the nav.
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.nav > li.disabled > a {
color: #777777;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #777777;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eeeeee;
border-color: #428bca;
}
.nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid #dddddd;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eeeeee #eeeeee #dddddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #555555;
background-color: #ffffff;
border: 1px solid #dddddd;
border-bottom-color: transparent;
cursor: default;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
#media (min-width: 768px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid #dddddd;
}
#media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid #dddddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 4px;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #ffffff;
background-color: #428bca;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
#media (min-width: 768px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid #dddddd;
}
#media (min-width: 768px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid #dddddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.tab-content > .tab-pane {
display: none;
visibility: hidden;
}
.tab-content > .active {
display: block;
visibility: visible;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent;
}
#media (min-width: 768px) {
.navbar {
border-radius: 4px;
}
}
#media (min-width: 768px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch;
}
.navbar-collapse.in {
overflow-y: auto;
}
#media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
box-shadow: none;
}
.navbar-collapse.collapse {
display: block !important;
visibility: visible !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 340px;
}
#media (max-device-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
#media (min-width: 768px) {
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0;
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
#media (min-width: 768px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
}
#media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
height: 50px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
.navbar-brand > img {
display: block;
}
#media (min-width: 768px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
margin-right: 15px;
padding: 9px 10px;
margin-top: 8px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
#media (min-width: 768px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 7.5px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
#media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
#media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
}
.navbar-form {
margin-left: -15px;
margin-right: -15px;
padding: 10px 15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 8px;
margin-bottom: 8px;
}
#media (min-width: 768px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .form-control-static {
display: inline-block;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .form-control-feedback {
top: 0;
}
}
#media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
.navbar-form .form-group:last-child {
margin-bottom: 0;
}
}
#media (min-width: 768px) {
.navbar-form {
width: auto;
border: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.navbar-btn {
margin-top: 8px;
margin-bottom: 8px;
}
.navbar-btn.btn-sm {
margin-top: 10px;
margin-bottom: 10px;
}
.navbar-btn.btn-xs {
margin-top: 14px;
margin-bottom: 14px;
}
.navbar-text {
margin-top: 15px;
margin-bottom: 15px;
}
#media (min-width: 768px) {
.navbar-text {
float: left;
margin-left: 15px;
margin-right: 15px;
}
}
#media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
margin-right: -15px;
}
.navbar-right ~ .navbar-right {
margin-right: 0;
}
}
.navbar-default {
background-color: #f8f8f8;
border-color: #e7e7e7;
}
.navbar-default .navbar-brand {
color: #777777;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #777777;
}
.navbar-default .navbar-nav > li > a {
color: #777777;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #333333;
background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #555555;
background-color: #e7e7e7;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: #dddddd;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #dddddd;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888888;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #e7e7e7;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
background-color: #e7e7e7;
color: #555555;
}
#media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777777;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333333;
background-color: transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555555;
background-color: #e7e7e7;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.navbar-default .navbar-link {
color: #777777;
}
.navbar-default .navbar-link:hover {
color: #333333;
}
.navbar-default .btn-link {
color: #777777;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #333333;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #cccccc;
}
.navbar-inverse {
background-color: #222222;
border-color: #080808;
}
.navbar-inverse .navbar-brand {
color: #9d9d9d;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #9d9d9d;
}
.navbar-inverse .navbar-nav > li > a {
color: #9d9d9d;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #080808;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: #333333;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: #333333;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #101010;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #080808;
color: #ffffff;
}
#media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #9d9d9d;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #9d9d9d;
}
.navbar-inverse .navbar-link:hover {
color: #ffffff;
}
.navbar-inverse .btn-link {
color: #9d9d9d;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #ffffff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444444;
}
.clearfix:before,
.clearfix:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after {
content: " ";
display: table;
}
.clearfix:after,
.form-horizontal .form-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after {
clear: both;
}
Related
I used PagedList.MVC for my web, but I have some problems with CSS, because pagination on my web looks:
but should looks:
I'm using bootstrap also with my own css .. so somewhere must be conflict between them. Ican't find where conflict started.
Any idea for custom css? Maybe add some style here:
.pagination {
display: compact;
padding-left: 0;
margin: 0;
border-radius: 4px;
}
.pagination > li {
display: inline-grid;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 0;
margin-left: -1px;
line-height: 1.428571429;
text-decoration: none;
background-color: #eee;
border: 1px solid #dddddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
background-color: #eeeeee;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
z-index: 2;
color: #000;
cursor: default;
background-color: #428bca;
border-color: #428bca;
}
.pagination > .disabled > span,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #999999;
cursor: not-allowed;
background-color: #eee;
border-color: #dddddd;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 0;
font-size: 18px;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
border-bottom-left-radius: 6px;
border-top-left-radius: 6px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 0;
font-size: 12px;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
Use This css
ul
{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden; /*background-color: #333;*/
}
li
{
float: left;
border-right: 1px solid #bbb;
}
li:last-child
{
border-right: none;
}
li a
{
display: block;
color: Black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active)
{
background-color: #4CAF50;
}
.active
{
background-color: #4CAF50;
}
How can i put any text in the red circle
http://imgur.com/r1HWAxM
Also How can i put the login button and signup button together
http://imgur.com/gL1CALU
This is the super long CSS ~~
And I use the example HTML on the bootstrap official site
.nav {
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eee;
}
.nav > li.disabled > a {
color: #777;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #777;
text-decoration: none;
cursor: not-allowed;
background-color: transparent;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eee;
border-color: #428bca;
}
.nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid #ddd;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eee #eee #ddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #555;
cursor: default;
background-color: #fff;
border: 1px solid #ddd;
border-bottom-color: transparent;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 5px;
text-align: center;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
#media (min-width: 768px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid #ddd;
}
#media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid #ddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #fff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 4px;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #fff;
background-color: #428bca;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
margin-bottom: 5px;
text-align: center;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
#media (min-width: 768px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid #ddd;
}
#media (min-width: 768px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid #ddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #fff;
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent;
}
#media (min-width: 768px) {
.navbar {
border-radius: 4px;
}
}
#media (min-width: 768px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
padding-right: 15px;
padding-left: 15px;
overflow-x: visible;
-webkit-overflow-scrolling: touch;
border-top: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.navbar-collapse.in {
overflow-y: auto;
}
#media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-right: 0;
padding-left: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 340px;
}
#media (max-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
#media (min-width: 768px) {
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0;
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
#media (min-width: 768px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
-webkit-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
#media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
height: 50px;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
#media (min-width: 768px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 8px;
margin-right: 15px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
#media (min-width: 768px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 7.5px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
#media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
#media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
.navbar-nav.navbar-right:last-child {
margin-right: -15px;
}
}
#media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
}
}
.navbar-form {
padding: 10px 15px;
margin-top: 8px;
margin-right: -15px;
margin-bottom: 8px;
margin-left: -15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
}
#media (min-width: 768px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .form-control-feedback {
top: 0;
}
}
#media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
}
#media (min-width: 768px) {
.navbar-form {
width: auto;
padding-top: 0;
padding-bottom: 0;
margin-right: 0;
margin-left: 0;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-form.navbar-right:last-child {
margin-right: -15px;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.navbar-btn {
margin-top: 8px;
margin-bottom: 8px;
margin-right: 10px;
}
.navbar-btn.btn-sm {
margin-top: 10px;
margin-bottom: 10px;
}
.navbar-btn.btn-xs {
margin-top: 14px;
margin-bottom: 14px;
}
.navbar-text {
margin-top: 15px;
margin-bottom: 15px;
}
#media (min-width: 768px) {
.navbar-text {
float: left;
margin-right: 15px;
margin-left: 15px;
}
.navbar-text.navbar-right:last-child {
margin-right: 0;
}
}
.navbar-default {
float: right;
background-color: #f8f8f8;
border-color: #e7e7e7;
width: 800px;
}
.navbar-default .navbar-brand {
color: #777;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #777;
}
.navbar-default .navbar-nav > li > a {
color: #777;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #555;
background-color: #e7e7e7;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #ccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: #ddd;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #ddd;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #e7e7e7;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #555;
background-color: #e7e7e7;
}
#media (max-width: 767px) {
.navbar-default {
float: right;
background-color: #f8f8f8;
border-color: #e7e7e7;
width: 50%;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555;
background-color: #e7e7e7;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #ccc;
background-color: transparent;
}
}
.navbar-default .navbar-link {
color: #777;
}
.navbar-default .navbar-link:hover {
color: #333;
}
.navbar-default .btn-link {
color: #777;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #333;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #ccc;
}
.navbar-inverse {
background-color: #222;
border-color: #080808;
width: 1080px;
margin:0px auto;
}
.navbar-inverse .navbar-brand {
color: #777;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #777;
}
.navbar-inverse .navbar-nav > li > a {
color: #777;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #fff;
background-color: #080808;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: #333;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: #333;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: #fff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #101010;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
color: #fff;
background-color: #080808;
}
#media (max-width: 767px) {
.navbar-inverse {
background-color: #222;
border-color: #080808;
width: 100%;
margin:0px auto;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #fff;
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #777;
}
.navbar-inverse .navbar-link:hover {
color: #fff;
}
.navbar-inverse .btn-link {
color: #777;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #fff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444;
}
text in red circle
create one more brand tag immediately after 1st one and put you own short text in, like so
<a class="navbar-brand" href="#">Brand</a>
<a class="navbar-brand" href="#"><small>Your text<></a>
buttons together
putting two buttons inside a single form-group should style it:
<form class="navbar-form navbar-left">
<div class="form-group">
<button type="submit" class="btn btn-default">Log in</button>
<button type="submit" class="btn btn-default">Sign up</button>
</div>
</form>
I'm having some trouble with a dropdown menu I'm using at louiseballantine.com/redesign/bridal.php.
On smaller screens where the collapsed menu is shown, you'll notice that the menu seems to work well at first. However, when you activate the Bridal & Occasion sub-menu, there is a scrolling issue and part of the menu cannot be accessed.
Admittedly, Bootstrap is new to me and I get a little lost when trying to pick my way through the many styles associated with the various menus, but I've tried adding/editing various max-height and overflow declarations with no success.
One thing which also annoys me slightly is that the menu seems to operate based on :hover rather than when clicked. I'd like to fix this too.
Please excuse my inexperience. Any advice or assistance would be very gratefully received.
::::: UPDATE :::::
It seems I've been unclear regarding the issue with scrolling. This only seems to be apparent on handheld devices. On my iPhone, for example, the menu seems fine at first, but when you open the Bridal & Occasion sub-menu, it becomes impossible to see anything below Gallery.
Again, I've played around with the various max-height and overflow settings, but can't seem to locate the problem. Any help would be much appreciated.
::: Navbar HTML :::
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left" style="width:100%;">
<li class="hidden">
</li>
<li>Home</li>
<li>Bio</li>
<li class="dropdown">Bridal & Occasion <b class="caret"></b>
<ul class="dropdown-menu" id="dropdown">
<li>Bridal Makeup</li>
<li>Makeup Lessons</li>
<li>Occasion & Events</li>
<li>Hair Extensions</li>
<li>Spray Tanning</li>
</ul>
</li>
<li>Gallery</li>
<li>Videos</li>
<li>Reviews</li>
<li>Rates</li>
<li>Contact</li>
</ul>
</div>
::: Navbar CSS (Bootstrap) :::
.dropdown {position: relative;}
.dropdown-toggle:focus {outline: 0;}
.dropdown:hover .dropdown-menu {display: block;}
.dropdown-menu {
/*position: absolute;*/
position: relative;
top: 100%;
left: 0;
z-index: 1100;
display: none;
float: left;
/*min-width: 20em;*/
width: 100%;
padding: 0;
margin: 1em 0;
font-size: 1em;
text-align: left;
list-style: none;
background-color: transparent;
-webkit-background-clip: padding-box;
background-clip: padding-box;
-webkit-box-shadow: 0 6px 6px rgba(0, 0, 0, .25);
box-shadow: 0 6px 6px rgba(0, 0, 0, .25);
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.dropdown-menu {
position: absolute;
width: auto;
min-width: 20em;
margin: 0;
border: 1px solid #CCC;
-webkit-box-shadow: 0 6px 6px rgba(0, 0, 0, .5);
box-shadow: 0 6px 6px rgba(0, 0, 0, .5);
}
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #CCC;
}
.dropdown-menu > li > a {
display: block;
padding: 0.5em 2em;
clear: both;
font-weight: normal;
line-height: 1.5;
color: #FFF;
background-color: #111;
white-space: nowrap;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.dropdown-menu > li > a {
color: #000;
background-color: rgba(255,255,255,.95);
}
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
color: #CCC;
text-decoration: none;
background-color: rgba(0,0,0,.95);
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
color: #666;
background-color: rgba(0,0,0,.95);
}
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #000;
text-decoration: none;
background-color: rgba(40,40,40,1.0);
outline: 0;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #000;
text-decoration: none;
background-color: rgba(255,255,255,1.0);
outline: 0;
}
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
color: #777;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
text-decoration: none;
cursor: not-allowed;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.dropdown-menu-right {
right: 0;
left: auto;
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.dropdown-header {
display: block;
padding: 3px 20px;
font-size: 12px;
line-height: 1.42857143;
color: #777;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 990;
}
.pull-right > .dropdown-menu {
right: 0;
left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
content: "";
border-top: 0;
border-bottom: 4px solid;
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 1px;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-right .dropdown-menu {
right: 0;
left: auto;
}
.navbar-right .dropdown-menu-left {
right: auto;
left: 0;
}
}
.nav {
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 0 1em;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #999;
}
.nav > li.disabled > a {
color: #777;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #777;
text-decoration: none;
cursor: not-allowed;
background-color: transparent;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eee;
border-color: #428bca;
}
.nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid #ddd;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eee #eee #ddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #555;
cursor: default;
background-color: #fff;
border: 1px solid #ddd;
border-bottom-color: transparent;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 5px;
text-align: center;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid #ddd;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid #ddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #fff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 4px;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #fff;
background-color: #428bca;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
margin-bottom: 5px;
text-align: center;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 4px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid #ddd;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid #ddd;
border-radius: 4px 4px 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #fff;
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.navbar {
position: relative;
min-height: 2em;
margin-bottom: 0;
border: 1px solid transparent;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
padding-right: 15px;
padding-left: 15px;
overflow-x: visible;
-webkit-overflow-scrolling: touch;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.navbar-collapse.in {
overflow-y: auto;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-collapse {
width: auto;
-webkit-box-shadow: none;
box-shadow: none;
padding:0;
background-color:#eee;
}
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-right: 0;
padding-left: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: none; /* was 340px */
}
#media (max-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: none; /* was 240px */
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
-webkit-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
height: 50px;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 12px;
margin-right: 15px;
margin-bottom: 12px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 0px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 7.5px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
/* Media Query increased from 767px to 769px to account for Portrait iPad */
#media (max-width: 769px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
.navbar-nav.navbar-right:last-child {
margin-right: -15px;
}
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
}
}
.navbar-form {
padding: 10px 15px;
margin-top: 8px;
margin-right: -15px;
margin-bottom: 8px;
margin-left: -15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .form-control-feedback {
top: 0;
}
}
/* Media Query increased from 767px to 769px to account for Portrait iPad */
#media (max-width: 769px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-form {
width: auto;
padding-top: 0;
padding-bottom: 0;
margin-right: 0;
margin-left: 0;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-form.navbar-right:last-child {
margin-right: -15px;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.navbar-btn {
margin-top: 8px;
margin-bottom: 8px;
}
.navbar-btn.btn-sm {
margin-top: 10px;
margin-bottom: 10px;
}
.navbar-btn.btn-xs {
margin-top: 14px;
margin-bottom: 14px;
}
.navbar-text {
margin-top: 15px;
margin-bottom: 15px;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-text {
float: left;
margin-right: 15px;
margin-left: 15px;
}
.navbar-text.navbar-right:last-child {
margin-right: 0;
}
}
.navbar-default {
background-color: #666;
border-color: #666;
}
.navbar-default .navbar-brand {
color: #777;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #777;
}
.navbar-default .navbar-nav > li > a {
color: #777;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #FFF;
background-color: #666;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #ccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: #ddd;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #ddd;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #666;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
color: #FFF;
background-color: #333;
}
/* Media Query increased from 767px to 769px to account for Portrait iPad */
#media (max-width: 769px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
background-color: transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #FFF;
background-color: #000;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #FFF;
background-color: #333;
}
}
.navbar-default .navbar-link {
color: #777;
}
.navbar-default .navbar-link:hover {
color: #333;
}
.navbar-default .btn-link {
color: #777;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #333;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #ccc;
}
.navbar-inverse {
background-color: #222;
border-color: #080808;
}
.navbar-inverse .navbar-brand {
color: #777;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #777;
}
.navbar-inverse .navbar-nav > li > a {
color: #777;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #fff;
background-color: #080808;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: #333;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: #333;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: #fff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #101010;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
color: #fff;
background-color: #080808;
}
/* Media Query increased from 767px to 769px to account for Portrait iPad */
#media (max-width: 769px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #fff;
background-color: #080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #777;
}
.navbar-inverse .navbar-link:hover {
color: #fff;
}
.navbar-inverse .btn-link {
color: #777;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #fff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444;
}
::: Navbar CSS (Agency Theme) :::
#navigation {/*border:1px solid #CCC;*/ margin:0; padding:0;}
.navbar-default .navbar-brand {
font-family: 'Oswald', serif;
color: #FFF;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-brand:active,
.navbar-default .navbar-brand.active {
color: #FFF;
}
.navbar-default .navbar-collapse {
/*border-color: rgba(0,0,0,.02)*/;
}
.navbar-default .navbar-toggle {
border-color: #FFF;
background-color: #000;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #fff;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #333;
}
.navbar-default .nav li a {
text-transform: uppercase;
font-family: 'Oswald', serif;
font-size: 1.2em;
font-weight: 300;
letter-spacing: 1px;
color: #fff;
}
.navbar-default .nav li a:hover,
.navbar-default .nav li a:focus {
outline: 0;
color: #fff;
background-color:#333;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
}
.navbar-default .navbar-nav>.active>a {
border-radius: 0;
color: #FFF;
background-color: #333;
}
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
color: #fff;
background-color: #333;
}
/* Media Query increased from 768px to 770px to account for Portrait iPad */
#media (min-width: 770px) {
.navbar-default .nav li a {
color: #000;
}
.navbar-default .nav li a:hover,
.navbar-default .nav li a:focus {
color: #FFF;
background-color:#000;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
}
.navbar-default .navbar-nav>.active>a {
color: #FFF;
background-color: #333;
}
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
color: #FFF;
background-color: #000;
}
}
#media(min-width:770px) {
.navbar-default {
padding: 0;
border: 0;
background-color: #000;
-webkit-transition: padding .3s;
-moz-transition: padding .3s;
transition: padding .3s;
}
.navbar-default .navbar-brand {
font-size: 2em;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
}
.navbar-default .navbar-nav>.active>a {
border-radius: 3px;
}
.navbar-default.navbar-shrink {
padding: 10px 0;
background-color: #222;
}
.navbar-default.navbar-shrink .navbar-brand {
font-size: 1.5em;
}
}
::: Custom CSS :::
#media (min-width: 770px) {
.navbar-collapse {background:#FFF;}
.dropdown-menu > li > a {
display: block;
padding: 0.5em 2em;
clear: both;
font-weight: normal;
line-height: 1.5;
color: #000;
background-color: rgba(210,210,210,.95);
white-space: nowrap;
}
}
I have a problem of alignment with my navbar build using Bootstrap3.
This is my navbar when it is not collapsed:
This is when it is collapsed (viewport under 1000px):
I want to stack up all the elements, as for example:
Gassero / -11.8810 (on his right)
Ordinare
Paniere
Conto
[img] Ciao
This is a bootply of the code:
This is my nav code:
<nav class="userbar" role="navigation">
<div class="logo">
<img src="img/befair.png" alt="..." class="imglogo">
</div>
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navhead">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="brandname">GASISTAFELICE</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="navbar-left">
<ul ng-controller="gas_controller" class="optionlist nav navbar-nav">
<li ng-repeat="gasname in gasnames"
ng-class="{ 'active': $index == selectedIndex }"
ng-click="itemClicked($index)">
<a href="#/{{peID}}/" ng-click="getID(gasname.id);">
{{gasname.name}}
</a>
<div class="gaslabel">{{gasname.balance}}€</div>
</li>
</ul>
<ul class="optionlist nav navbar-nav" ng-controller="menu_controller">
<li markable>
<a href="#/{{peID}}/">
<i class="fa fa-book"></i>Ordinare
</a>
</li>
<li markable>
<a href="#/{{peID}}/paniere">
<i class="fa fa-shopping-cart"></i>Paniere
</a>
</li>
<li markable>
<a href="#/{{peID}}/conto">
<i class="fa fa-user"></i>Conto
</a>
</li>
</ul>
</div>
<div class="navbar-right">
<a class="navpic" href="#/{{peID}}/scheda"><img src="img/user_pic.png" alt="..." class="imgpic"></a>
<a class="titlenav" href="#/{{peID}}/scheda">Ciao {{name}}</a>
</div>
</div><!-- /.navbar-collapse -->
</nav>
And this is my LESS/CSS:
.userbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent;
background-color: #f8f8f8;
border-color: #e7e7e7;
}
.userbar:before,
.userbar:after {
content: " ";
display: table;
}
.userbar:after {
clear: both;
}
.userbar:before,
.userbar:after {
content: " ";
display: table;
}
.userbar:after {
clear: both;
}
#media (min-width: 1000px) {
.userbar {
border-radius: 4px;
}
}
.userbar .navbar-brand {
color: #777777;
}
.userbar .navbar-brand:hover,
.userbar .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent;
}
.userbar .navbar-text {
color: #777777;
}
.userbar .navbar-nav > li > a {
color: #777777;
}
.userbar .navbar-nav > li > a:hover,
.userbar .navbar-nav > li > a:focus {
color: #333333;
background-color: transparent;
}
.userbar .navbar-nav > .active > a,
.userbar .navbar-nav > .active > a:hover,
.userbar .navbar-nav > .active > a:focus {
color: #555555;
background-color: #e7e7e7;
}
.userbar .navbar-nav > .disabled > a,
.userbar .navbar-nav > .disabled > a:hover,
.userbar .navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.userbar .navbar-toggle {
border-color: #dddddd;
}
.userbar .navbar-toggle:hover,
.userbar .navbar-toggle:focus {
background-color: #dddddd;
}
.userbar .navbar-toggle .icon-bar {
background-color: #cccccc;
}
.userbar .navbar-collapse,
.userbar .navbar-form {
border-color: #e7e7e7;
}
.userbar .navbar-nav > .open > a,
.userbar .navbar-nav > .open > a:hover,
.userbar .navbar-nav > .open > a:focus {
background-color: #e7e7e7;
color: #555555;
}
#media (max-width: 999px) {
.userbar .navbar-nav .open .dropdown-menu > li > a {
color: #777777;
}
.userbar .navbar-nav .open .dropdown-menu > li > a:hover,
.userbar .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333333;
background-color: transparent;
}
.userbar .navbar-nav .open .dropdown-menu > .active > a,
.userbar .navbar-nav .open .dropdown-menu > .active > a:hover,
.userbar .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555555;
background-color: #e7e7e7;
}
.userbar .navbar-nav .open .dropdown-menu > .disabled > a,
.userbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.userbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.userbar .navbar-link {
color: #777777;
}
.userbar .navbar-link:hover {
color: #333333;
}
.navhead:before,
.navhead:after {
content: " ";
display: table;
}
.navhead:after {
clear: both;
}
.navhead:before,
.navhead:after {
content: " ";
display: table;
}
.navhead:after {
clear: both;
}
#media (min-width: 1000px) {
.navhead {
float: left;
}
}
.titlenav {
float: left;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
}
.titlenav:hover,
.titlenav:focus {
text-decoration: none;
}
#media (min-width: 1000px) {
.navbar > .container .titlenav {
margin-left: -15px;
}
}
.collapsebar {
display: none;
max-height: 340px;
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch;
}
.collapsebar.in {
display: block;
}
.collapsebar:before,
.collapsebar:after {
content: " ";
display: table;
}
.collapsebar:after {
clear: both;
}
.collapsebar:before,
.collapsebar:after {
content: " ";
display: table;
}
.collapsebar:after {
clear: both;
}
.collapsebar.in {
overflow-y: auto;
}
#media (min-width: 1000px) {
.collapsebar {
width: auto;
border-top: 0;
box-shadow: none;
}
.collapsebar.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.collapsebar.in {
overflow-y: visible;
}
.navbar-fixed-top .collapsebar,
.navbar-static-top .collapsebar,
.navbar-fixed-bottom .collapsebar {
padding-left: 0;
padding-right: 0;
}
}
#media (min-width: 1000px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
}
}
.navbar-left {
text-align: center;
}
.optionlist {
margin-bottom: 0;
padding-left: 0;
list-style: none;
margin: 7.5px -15px;
float: left!important;
}
.optionlist:before,
.optionlist:after {
content: " ";
display: table;
}
.optionlist:after {
clear: both;
}
.optionlist:before,
.optionlist:after {
content: " ";
display: table;
}
.optionlist:after {
clear: both;
}
.optionlist > li {
position: relative;
display: block;
}
.optionlist > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.optionlist > li > a:hover,
.optionlist > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.optionlist > li.disabled > a {
color: #999999;
}
.optionlist > li.disabled > a:hover,
.optionlist > li.disabled > a:focus {
color: #999999;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.optionlist .open > a,
.optionlist .open > a:hover,
.optionlist .open > a:focus {
background-color: #eeeeee;
border-color: #428bca;
}
.optionlist .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.optionlist > li > a > img {
max-width: none;
}
.optionlist > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
#media (max-width: 999px) {
.optionlist .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.optionlist .open .dropdown-menu > li > a,
.optionlist .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.optionlist .open .dropdown-menu > li > a {
line-height: 20px;
}
.optionlist .open .dropdown-menu > li > a:hover,
.optionlist .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
#media (min-width: 1000px) {
.optionlist {
float: left;
margin: 0;
}
.optionlist > li {
float: left;
}
.optionlist > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
.optionlist.navbar-right:last-child {
margin-right: -15px;
}
}
.optionlist > li > a {
padding-bottom: 27px;
}
}
#media (min-width: 1000px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 7.5px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
#media (max-width: 999px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
#media (min-width: 1000px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
.navbar-nav.navbar-right:last-child {
margin-right: -15px;
}
}
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.nav:before,
.nav:after {
content: " ";
display: table;
}
.nav:after {
clear: both;
}
.nav:before,
.nav:after {
content: " ";
display: table;
}
.nav:after {
clear: both;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.nav > li.disabled > a {
color: #999999;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #999999;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eeeeee;
border-color: #428bca;
}
.nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.userbar{
//aggiungere stile navbar
.navbar;
.navbar-default; //taken both from Bootstrap
}
.navhead{
.navbar-header; //taken from Bootstrap
}
.brandname{
margin-top:10px;
margin-right:10px;
margin-left:5px;
}
.collapsebar{
.collapse;
.navbar-collapse;
}
.navbar-left{
text-align:center;
}
.optionlist{
.nav;
.navbar-nav;
float:left!important;
}
.gaslabel{
position: absolute;
width:100%;
color: #gas-color;
}
.navbar-right{
margin-top:5px;
}
You need to move the nave link into a single ul element then use css for further alignment and finishing.
http://www.bootply.com/tsf41Uxykt#
<ul class="optionlist nav navbar-nav" ng-controller="menu_controller">
<li ng-controller="gas_controller" ng-repeat="gasname in gasnames" ng-class="{ 'active': $index == selectedIndex }" ng-click="itemClicked($index)">
<a href="#/{{peID}}/" ng-click="getID(gasname.id);">
gasname
</a>
<div class="gaslabel">110100</div>
</li>
<li markable="">
<a href="#/{{peID}}/">
<i class="fa fa-book"></i>Ordinare
</a>
</li>
<li markable="">
<a href="#/{{peID}}/paniere">
<i class="fa fa-shopping-cart"></i>Paniere
</a>
</li>
<li markable="">
<a href="#/{{peID}}/conto">
<i class="fa fa-user"></i>Conto
</a>
</li>
<li>
<div class="navbar-right">
<a class="navpic" href="#/{{peID}}/scheda"><img src="img/user_pic.png" alt="..." class="imgpic"></a>
<a class="titlenav" href="#/{{peID}}/scheda">Ciao {{name}}</a>
</div>
</li>
</ul>
I used a derivative of the flat ui menu- however i cant seem to eliminate the top and left margin/padding- please help.. here is the code.. Please provide advice on how i can get rid of the space at the top, thanks..
.nav {
margin-bottom:0;
margin-top:0;
padding-left:0;
list-style:none;
}
.nav:before, .nav:after {
content:" ";
display:table;
}
.nav:after {
clear:both;
}
.nav:before, .nav:after {
content:" ";
display:table;
}
.nav:after {
clear:both;
}
.nav>li {
position:relative;
display:block;
}
.nav>li>a {
position:relative;
display:block;
padding:0px 15px;
}
.nav>li>a:hover, .nav>li>a:focus {
text-decoration:none;
background-color:#198CFF;
}
.nav>li.disabled>a {
color:#1abc9c;
}
.nav>li.disabled>a:hover, .nav>li.disabled>a:focus {
color:#999999;
text-decoration:none;
background-color:transparent;
cursor:not-allowed;
}
.nav .open>a, .nav .open>a:hover, .nav .open>a:focus {
background-color:#eeeeee;
border-color:#428bca;
}
/*THIS IS WHERE THE NAVBAR STARTS*/
.navbar {
position:relative;
min-height:40px;
margin:0px;
border:0px solid transparent;
}
.navbar:before, .navbar:after {
content:" ";
display:table;
}
.navbar:after {
clear:both;
}
.navbar:before, .navbar:after {
content:" ";
display:table;
}
.navbar:after {
clear:both;
}
#media (min-width:768px) {
.navbar {
border-radius:4px;
}
}
.navbar-header:before, .navbar-header:after {
content:" ";
display:table;
}
.navbar-header:after {
clear:both;
}
.navbar-header:before, .navbar-header:after {
content:" ";
display:table;
}
.navbar-header:after {
clear:both;
}
#media (min-width:768px) {
.navbar-header {
float:left;
}
}
.navbar-collapse {
max-height:30px;
overflow-x:visible;
padding-right:15px;
padding-left:15px;
border-top:0px solid transparent;
box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling:touch;
}
.navbar-collapse:before, .navbar-collapse:after {
content:" ";
display:table;
}
.navbar-collapse:after {
clear:both;
}
.navbar-collapse:before, .navbar-collapse:after {
content:" ";
display:table;
}
.navbar-collapse:after {
clear:both;
}
.navbar-collapse.in {
overflow-y:auto;
}
#media (min-width:768px) {
.navbar-collapse {
width:auto;
border-top:0;
box-shadow:none;
}
.navbar-collapse.collapse {
display:block !important;
height:auto !important;
padding-bottom:0;
overflow:visible !important;
}
.navbar-collapse.in {
overflow-y:visible;
}
.navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
padding-left:0;
padding-right:0;
}
}
.navbar-default .navbar-nav>li>a {
color:#777777;
}
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
color:#333333;
background-color:transparent;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
color:#555555;
background-color:#e7e7e7;
}
.navbar-default .navbar-nav>.disabled>a, .navbar-default .navbar-nav>.disabled>a:hover, .navbar-default .navbar-nav>.disabled>a:focus {
color:#cccccc;
background-color:transparent;
}
.navbar-default .navbar-toggle {
border-color:#dddddd;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color:#dddddd;
}
.navbar-default .navbar-toggle .icon-bar {
background-color:#cccccc;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
border-color:#e7e7e7;
}
.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:hover, .navbar-default .navbar-nav>.open>a:focus {
background-color:#e7e7e7;
color:#555555;
}
#media (max-width:767px) {
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
color:#777777;
}
.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover, .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus {
color:#333333;
background-color:transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu>.active>a, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover, .navbar-default .navbar-nav .open .dropdown- menu>.active>a:focus {
color:#555555;
background-color:#e7e7e7;
}
.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover, .navbar-default .navbar-nav .open .dropdown- menu>.disabled>a:focus {
color:#cccccc;
background-color:transparent;
}
}
.navbar-default .navbar-link {
color:#777777;
}
.navbar-default .navbar-link:hover {
color:#333333;
}
.navbar-inverse {
background-color:#198CFF;
border-color:#080808;
}
.navbar-inverse .navbar-brand {
color:#198CFF;
}
.navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus {
color:#ffffff;
background-color:transparent;
}
.navbar-inverse .navbar-text {
color:#999999;
}
.navbar-inverse .navbar-nav>li>a {
color:#999999;
}
.navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus {
color:#ffffff;
background-color:transparent;
}
.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:hover, .navbar-inverse .navbar-nav>.active>a:focus {
color:#ffffff;
background-color:#080808;
}
.navbar-inverse .navbar-nav>.disabled>a, .navbar-inverse .navbar-nav>.disabled>a:hover, .navbar-inverse .navbar-nav>.disabled>a:focus {
color:#444444;
background-color:transparent;
}
.navbar-inverse .navbar-toggle {
border-color:#333333;
}
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
background-color:#333333;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color:#ffffff;
}
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border-color:#101010;
}
.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:hover, .navbar-inverse .navbar-nav>.open>a:focus {
background-color:#080808;
color:#ffffff;
}
#media (max-width:767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header {
border-color:#080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color:#080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
color:#999999;
}
.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus {
color:#ffffff;
background-color:transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover, .navbar-inverse .navbar-nav .open .dropdown- menu>.active>a:focus {
color:#ffffff;
background-color:#080808;
}
.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover, .navbar-inverse .navbar-nav .open .dropdown- menu>.disabled>a:focus {
color:#444444;
background-color:transparent;
}
}
.navbar-inverse .navbar-link {
color:#999999;
}
.navbar-inverse .navbar-link:hover {
color:#ffffff;
}
.clearfix:before, .clearfix:after {
content:" ";
display:table;
}
.clearfix:after {
clear:both;
}
.center-block {
display:block;
margin-left:auto;
margin-right:auto;
}
.pull-right {
float:right !important;
}
.pull-left {
float:left !important;
}
.hide {
display:none !important;
}
.show {
display:block !important;
}
.invisible {
visibility:hidden;
}
.text-hide {
font:0/0 a;
color:transparent;
text-shadow:none;
background-color:transparent;
border:0;
}
.hidden {
display:none !important;
visibility:hidden !important;
}
.affix {
position:fixed;
}
.navbar {
font-size: 16px;
border-radius: 0px;
border: none;
}
.navbar .navbar-brand {
border-radius: 1px 0 0 6px;
color: #526476;
font-size: 24px;
line-height: 2900.55px;
font-weight: 700;
padding: 2px 28px 24px 17px;
text-shadow: none;
display: inline-block;
}
.navbar .navbar-brand:hover, .navbar .navbar-brand:focus {
color: #1abc9c;
}
.navbar .navbar-brand[class*="fui-"] {
font-weight: normal;
}
.navbar .navbar-brand small {
line-height: 10;
}
.navbar .nav {
margin-right: 0;
display: inline-block;
float: left;
}
.navbar .nav > li {
position: relative;
display: inline-block;
}
.navbar .nav > li:hover > ul {
opacity: .9;
top: 100%;
visibility: visible;
z-index: 100;
-webkit-transform: scale(1, 1);
display: block\9;
}
.navbar .nav > li.active > a, .navbar .nav > li.active > a:hover, .navbar .nav > li.active > a:focus {
background: none;
color: #4C6A89;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar .nav > li:first-child {
border-radius: 1px 6px 0 0;
}
.navbar .nav > li:last-child {
border-radius: 0 0 6px 6px;
}
.navbar .nav > li > ul {
padding-top: 12px;
top: 80%;
padding-left: 0;
}
.navbar .nav > li > ul:before {
content:"";
border-style: solid;
border-width: 0 9px 9px 9px;
border-color: transparent transparent #198CFF transparent;
height: 0;
position: absolute;
left: 15px;
top: 5px;
width: 0;
-webkit-transform: rotate(360deg);
}
.navbar .nav > li > ul li:hover ul {
opacity: .8;
-webkit-transform: scale(1, 1);
visibility: visible;
display: block\9;
}
.navbar .nav > li > ul li ul {
left: 100%;
}
.navbar .nav > li > a {
color: #526476;
display: inline-block;
font-weight: 700;
font-size: 14px;
line-height: 200px;
padding: 0px 20px;
text-shadow: none;
-webkit-transition: background-color .25s, color .25s, border-bottom-color .25s;
transition: background-color .25s, color .25s, border-bottom-color .25s;
}
.navbar .nav > li > a:hover, .navbar .nav > li > a:focus {
color: #000000;
background-color: transparent;
}
.navbar .nav > li > a[class*="fui-"] {
font-size: 24px;
font-weight: normal;
}
.navbar .nav > li > a >[class*="fui-"] {
font-size: 24px;
margin: -4px 0 0;
position: relative;
top: 4px;
}
.navbar .nav > li > a >[class*="fui-"] + * {
margin-left: 12px;
}
.navbar .nav ul {
border-radius: 4px;
left: 0;
list-style-type: none;
margin-left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 234px;
-webkit-transform: scale(1, 0.99);
-webkit-transform-origin: 0 0;
visibility: hidden;
-webkit-transition: 0.25s ease-out;
transition: 0.25s ease-out;
}
.navbar .nav ul ul {
left: 95%;
padding-left: 5px;
}
.navbar .nav ul li {
background-color: #198CFF;
padding: 0 3px 3px;
position: relative;
}
.navbar .nav ul li:first-child {
border-radius: 6px 6px 0 0;
padding-top: 3px;
}
.navbar .nav ul li:last-child {
border-radius: 0 0 6px 6px;
}
.navbar .nav ul li.active > a, .navbar .nav ul li.active > a:hover, .navbar .nav ul li.active > a:focus {
background-color: #999999;
color: #ffffff;
padding-left: 9px;
padding-right: 9px;
}
.navbar .nav ul li.active + li > a {
padding-left: 9px;
padding-right: 9px;
}
.navbar .nav ul a {
border-radius: 2px;
color: #ffffff;
display: block;
font-size: 14px;
padding: 3px 9px;
/*size of the menu secondary*/
text-decoration: none;
}
.navbar .nav ul a:hover {
background-color: #f1c40f;
}
.navbar .nav.navbar-left li:first-child a {
border-radius: 0px 0 0 6px;
border-left: none;
}
.navbar .btn-navbar {
background: none;
border: none;
color: #f1c40f;
margin: 18px 15px;
padding: 3px 15px;
text-shadow: none;
display: none;
}
.navbar .btn-navbar:hover, .navbar .btn-navbar:focus {
background: none;
color: #1f1c40f;
}
.navbar .btn-navbar:before {
content:"\e00c";
font-family:"Flat-UI-Icons";
font-size: 23px;
font-style: normal;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
.navbar .btn-navbar .icon-bar {
display: none;
}
.navbar-default {
background: #eceef0;
border: none;
padding-left: 0;
padding-right: 0;
border-radius: 0px;
}
.navbar-inverse {
background: #198CFF;
font-size: 14px;
}
.navbar-inverse .navbar-brand {
border-bottom: 2px solid #2c3e50;
border-right: 2px solid #2c3e50;
color: #ffffff;
padding: 0px 28px 110px 32px;
}
.navbar-inverse .btn-navbar {
color: #ffffff;
margin: 10px 100px;
}
.navbar-inverse .btn-icon {
margin: 10px 5px 10px 15px;
}
.navbar-inverse .nav > li:first-child.active > a {
padding-left: 20px;
}
.navbar-inverse .nav > li:first-child > a {
border-left: none;
}
.navbar-inverse .nav > li.active > a, .navbar-inverse .nav > li.active > a:hover, .navbar-inverse .nav > li.active > a:focus {
background-color: #f1c40f;
border-bottom-color: #9aa4af;
border-left: none;
color: #ffffff;
padding-left: 20px;
}
.navbar-inverse .nav > li.active + li > a {
border-left: none;
padding-left: 10px;
}
.navbar-inverse .nav > li > a {
font-size: 14px;
border-bottom: 0px solid #2c3e50;
border-left: 2px solid #2c3e50 !important;
color: #ffffff;
padding: 12px 20px 12px;
line-height: 4px;
}
.navbar-inverse .nav.navbar-right .dropdown-menu {
left: -100%;
margin-left: 2px;
}
.navbar-inverse .nav.navbar-right .open > .dropdown-menu:before {
display: block !important;
}
.navbar-inverse .nav.navbar-right > li > a {
border-radius: 0 6px 0px 0;
}
.navbar-unread, .navbar-new {
font-family:"Lato", Helvetica, Arial, sans-serif;
background-color: #1abc9c;
border-radius: 50%;
color: #ffffff;
font-size: 0;
font-weight: 700;
height: 61px;
line-height: 14px;
position: absolute;
right: 12px;
text-align: center;
top: 2px;
width: 6px;
z-index: 10;
}
.active .navbar-unread, .active .navbar-new {
background-color: #ffffff;
display: none;
}
.navbar-inverse .navbar-unread, .navbar-inverse .navbar-new {
top: 0px;
}
.navbar-new {
background-color: #e74c3c;
font-size: 12px;
line-height: 17px;
height: 18px;
margin: -9px -1px;
min-width: 18px;
padding: 0 1px;
width: auto;
-webkit-font-smoothing: subpixel-antialiased;
}
.navbar.navbar-inverse .nav li.dropdown.open > .dropdown-toggle {
background-color: #1abc9c;
border-bottom-color: #16a085;
color: #ffffff;
}
.navbar.navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret {
border-bottom-color: #ffffff !important;
border-top-color: #ffffff !important;
}
.navbar .nav li.dropdown.open > .dropdown-toggle {
background: none;
color: #1abc9c;
}
.navbar .nav li.dropdown.open > .dropdown-toggle .caret {
border-bottom-color: #1abc9c !important;
border-top-color: #1abc9c !important;
}
.navbar .nav li.dropdown.open .dropdown-menu {
opacity: 1;
top: 100%;
visibility: visible;
z-index: 1000;
-webkit-transform: none;
}
.navbar .nav li.dropdown > .dropdown-toggle {
outline: none;
}
.navbar .nav li.dropdown > .dropdown-toggle:hover .caret, .navbar .nav li.dropdown > .dropdown-toggle:focus .caret {
border-bottom-color: #1abc9c;
border-top-color: #1abc9c;
}
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-left-width: 6px;
border-right-width: 6px;
border-top-width: 8px;
border-bottom-color: #4c6a89;
border-top-color: #4c6a89;
margin-left: 10px;
}
.navbar .nav li.dropdown .dropdown-menu {
background-color: #34495e;
opacity: 0;
padding: 0;
visibility: hidden;
}
.navbar .nav li.dropdown .dropdown-menu:before {
display: none;
}
.navbar .nav li.dropdown .dropdown-menu:after {
border-bottom-color: #34495e;
}
.navbar .nav li.dropdown .dropdown-menu > li > a {
border-radius: 3px;
color: #ffffff;
padding: 6px 8px 8px;
}
.navbar .nav li.dropdown .dropdown-menu .divider {
background-color: #2c3e50;
border-bottom: none;
margin: 2px 10 5px;
padding: 0;
height: 2px;
}
.navbar.navbar-inverse .navbar-form {
border-left: 1px solid #2c3e50;
border-bottom: 1px solid #2c3e50;
padding: 0px 5px 0px 2px;
}
.navbar.navbar-inverse .navbar-form .input-group-btn .btn {
background-color: #2c3e50;
color: #4c6a89 !important;
}
.navbar.navbar-inverse .navbar-form .form-control {
background-color: #2c3e50;
color: #ffffff;
}
.navbar.navbar-inverse .navbar-form .form-control:-moz-placeholder {
color: #819db9;
}
.navbar.navbar-inverse .navbar-form .form-control::-moz-placeholder {
color: #819db9;
}
.navbar.navbar-inverse .navbar-form .form-control:-ms-input-placeholder {
color: #819db9;
}
.navbar.navbar-inverse .navbar-form .form-control::-webkit-input-placeholder {
color: #819db9;
}
.navbar.navbar-inverse .navbar-form .form-control.placeholder {
color: #819db9;
}
.navbar.navbar-inverse .navbar-form .form-control:focus {
border-color: #1abc9c;
}
.navbar.navbar-inverse .navbar-form.focus .input-group-btn .btn {
background-color: #2c3e50 !important;
}
.navbar .navbar-form {
margin: 0;
padding: 20px 5px 19px 20px;
max-width: 229px;
}
.navbar .navbar-form .form-group {
margin-bottom: 0;
}
.navbar .navbar-form .form-control {
background-color: #ffffff;
border: 2px solid transparent;
color: #526476;
font-size: 15px;
}
.navbar .navbar-form .form-control:-moz-placeholder {
color: #798795;
}
.navbar .navbar-form .form-control::-moz-placeholder {
color: #798795;
}
.navbar .navbar-form .form-control:-ms-input-placeholder {
color: #798795;
}
.navbar .navbar-form .form-control::-webkit-input-placeholder {
color: #798795;
}
.navbar .navbar-form .form-control.placeholder {
color: #798795;
}
.navbar .navbar-form .form-control:focus {
border-color: #1abc9c;
}
.navbar .navbar-form .input-group-btn .btn {
border-color: transparent;
color: #9aa4af;
font-size: 16px;
}
.navbar.navbar-fixed-bottom .navbar-inner .navbar-form .form-control, .navbar.navbar-fixed-top .navbar-inner .navbar-form .form-control {
border-radius: 0px 0 0 50px !important;
}
.navbar.navbar-fixed-bottom .navbar-inner .navbar-form .btn, .navbar.navbar-fixed-top .navbar-inner .navbar-form .btn {
border-radius: 0 50px 50px 0;
}
.navbar.navbar-fixed-bottom .nav > li:hover > ul {
bottom: 100%;
padding-bottom: 1px;
top: auto;
}
.navbar.navbar-fixed-bottom .nav > li:hover > ul li:hover ul {
bottom: 0;
}
.navbar.navbar-fixed-bottom .nav ul {
bottom: 100%;
top: auto;
}
.navbar .navbar-inverse {
height:0px;
padding-top:0px;
padding-left:0px;
margin:0px;
}
.navbar-header {
height:0px;
padding-top:0px;
padding-left:0px;
margin:0px;
}
HTML
<div class="navbar navbar-inverse">
<div class="navbar-header">
<button type="button" class="btn btn-navbar"
data-toggle="collapse"
data-target=".navbar-collapse-01">
</button>
</div>
<div class="navbar-collapse collapse navbar-collapse-01">
<ul class="nav navbar-nav navbar-left">`enter code here`
<li class="active"> Home
</li>
<li> Investments
<ul>
<li>Registered
</li>
<li> Non-Registered
</li>
<li>GIC's
</li>
</ul>
<!-- /Sub menu -->
</li>
<li> Articles
</li>
<li> Reviews
</li>
<li> Contact
</li>
<li> About
</li>
</ul>
</div>
<!--/.nav -->
</div>
Fiddle Demo
Try this:
.navbar {
position:relative;
min-height:40px;
margin:0px;
/* Add padding: 0 */
border:0px solid transparent;
}