I read other questions here on stackoverflow but I can't figure out (not working), how to center a navbar menu and logo between 767px and 992px for mobile devices...
For PC is:
----------- simple links menu--
-- logo ------------- navmenu--
...and for small devices > 767px and < 992px should be in 3 lines, all centered:
------ simple links menu ------
-------------- logo -----------
------------ navmenu ----------
Under 767px it's good - there is a collapse menu...
Here is code only for header nav and full css:
#import url("http://fonts.googleapis.com/css?family=Libre+Baskerville:400italic");
#import url("http://fonts.googleapis.com/css?family=Lato:400,700,400italic");
/* ------------------------------------------------------------------
General Styles
------------------------------------------------------------------ */
body {
background: #212121;
overflow-x: hidden;
-ms-overflow-style: scrollbar;
font: 400 16px/1.8 "Lato", sans-serif;
color: #eee;
}
img {
max-width: 100%;
height: auto;
}
iframe {
border: 0;
}
/* ------------------------------------------------------------------
Selection
------------------------------------------------------------------ */
::-moz-selection {
background: #000;
color: #fff;
}
::-webkit-selection {
background: #000;
color: #fff;
}
::selection {
background: #000;
color: #fff;
}
/* ------------------------------------------------------------------
Transition elsements
------------------------------------------------------------------- */
a,
.btn {
-webkit-transition: all 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
-moz-transition: all 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
-o-transition: all 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
transition: all 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
}
/* ------------------------------------------------------------------
Reset box-shadow
------------------------------------------------------------------- */
.btn,
.well,
.panel,
.progress,
.form-control, .form-control:hover, .form-control:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
-ms-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
}
/* ------------------------------------------------------------------
Reset border-radius
------------------------------------------------------------------- */
.well, .label, .alert,
.modal-content {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-ms-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
}
/* ------------------------------------------------------------------
Typography
------------------------------------------------------------------- */
a {
color: rgba(17, 17, 17, 0.55);
}
a:hover, a:focus {
text-decoration: none;
color: #fafafa;
outline: 0;
}
/* ------------------------------------------------------------------
Tabs and Accordion
------------------------------------------------------------------- */
.nav-tabs {
border-color: #fafafa;
}
.nav-tabs > li > a {
font-size: 12px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
}
.nav-tabs >li.active > a,
.nav-tabs >li.active > a:hover,
.nav-tabs >li.active > a:focus {
border: 1px solid #fafafa;
border-bottom-color: transparent;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
background: #fafafa;
}
.tab-content {
border: 1px solid #fafafa;
border-top: 0;
padding: 15px;
}
.tab-content :last-child {
margin-bottom: 0;
}
/* ------------------------------------------------------------------
Navigation
------------------------------------------------------------------- */
.navbar-custom {
-webkit-transition: background 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000), padding 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
-moz-transition: background 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000), padding 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
-o-transition: background 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000), padding 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
transition: background 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000), padding 0.3s cubic-bezier(0.300, 0.100, 0.580, 1.000);
}
.navbar-custom {
background: #212121;
border: 0;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 12px;
webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.navbar-custom .navbar-brand {
float: none;
height: 60px;
display: table-cell;
vertical-align: middle;
padding-top: 0;
padding-bottom: 0;
letter-spacing: 4px;
font-weight: 400;
font-size: 20px;
color: #fafafa;
}
.navbar-custom a,
.navbar-custom .navbar-brand {
color: #fafafa;
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}
.navbar-custom .nav li > a {
position: relative;
}
.navbar-custom .nav > li > a:focus,
.navbar-custom .nav > li > a:hover,
.navbar-custom .nav .open > a,
.navbar-custom .nav .open > a:focus,
.navbar-custom .nav .open > a:hover,
.navbar-custom .dropdown-menu > li > a:focus,
.navbar-custom .dropdown-menu > li > a:hover {
background: none;
color: #757575;
}
/* Navbar toggle */
.navbar-custom .navbar-toggle {
margin-top: 13px;
}
.navbar-custom .navbar-toggle .icon-bar {
background: #bdbdbd;
}
/* Navbar dropdown */
.navbar-custom .dropdown-menu {
background: #212121;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 0;
padding: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #fafafa;
white-space: nowrap;
}
.navbar-custom .dropdown-menu > li > a {
border: 0;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 10px;
padding: 11px 15px;
}
.navbar-custom .dropdown-menu .dropdown-menu {
top: 0;
left: 100%;
right: auto;
margin-top: -1px;
}
.leftauto {
right: 0 !important;
left: auto !important;
}
.navbar-custom .dropdown-menu.left-side {
right: 100%;
left: auto;
}
.navbar-custom .dropdown-toggle:after {
position: absolute;
display: block;
right: 0;
top: 50%;
margin-top: -5px;
font: normal normal normal 14px/1 FontAwesome;
font-size: 9px;
content: "\f107";
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.navbar-custom .navbar-nav > .dropdown > .dropdown-toggle {
padding-right: 28px;
}
.navbar-custom .navbar-nav > .dropdown > .dropdown-toggle:after {
position: absolute;
display: block;
right: 15px;
top: 50%;
margin-top: -5px;
font: normal normal normal 14px/1 FontAwesome;
font-size: 9px;
content: "\f107";
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.light-logo {
display: none !important;
}
.navbar-transparent.navbar-dark .light-logo {
display: block !important;
}
.navbar-transparent.navbar-dark .dark-logo {
display: none !important;
}
/* Push search */
.navbar-custom .navbar-nav > .dropdown > .dropdown-toggle.search-dropdown:after {
content: "";
}
.dropdown-search {
position: relative;
padding: 7px 5px;
}
.dropdown-search .form-control {
position: relative;
}
.dropdown-search .search-btn {
position: absolute;
background: transparent;
border: none;
overflow: hidden;
top: 50%;
right: 0px;
width: 42px;
height: 32px;
line-height: 30px;
font-size: 14px;
outline: none;
color: #fafafa;
margin-top: -16px;
}
/* ------------------------------------------------------------------
Hero
------------------------------------------------------------------- */
.module-hero {
position: relative;
background-repeat: no-repeat;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.hero-caption {
display: table;
height: 100%;
width: 100%;
text-align: center;
}
.hero-text {
position: relative;
display: table-cell;
vertical-align: middle;
height: 100%;
}
/* Hero caption sizes */
.mh-line-size-1,
.mh-line-size-2,
.mh-line-size-3,
.mh-line-size-4,
.mh-line-size-5,
.mh-line-size-6 {
font-weight: 700;
opacity: 0.99;
margin: 0;
}
.mh-line-size-1 {
letter-spacing: 50px;
font-size: 26px;
}
.mh-line-size-2 {
letter-spacing: 40px;
font-size: 24px;
}
.mh-line-size-3 {
letter-spacing: 12px;
font-size: 22px;
}
.mh-line-size-4 {
letter-spacing: 8px;
font-size: 14px;
}
.mh-line-size-5 {
letter-spacing: 6px;
font-size: 12px;
}
.mh-line-size-6 {
font-weight: 400;
font-size: 16px;
}
/* ------------------------------------------------------------------
Modules
------------------------------------------------------------------- */
.amber {color: ;}
.wrapper {
background: #212121;
overflow: hidden;
margin: 0 auto;
width: 100%;
}
.module,
.module-small {
padding: 140px 0;
position: relative;
background-repeat: no-repeat;
background-position: center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.module-small {
padding: 70px 0;
}
.navbar-custom + .module {
padding: 200px 0;
}
.navbar-custom + .module-small {
padding: 130px 0;
}
.module-parallax {
background-attachment: fixed;
}
/* Module titles */
.module-title {
text-transform: uppercase;
letter-spacing: 10px;
text-align: center;
font-size: 20px;
margin-bottom: 70px;
}
.module-subtitle {
text-align: center;
font-size: 15px;
margin-bottom: 70px;
}
.module-icon {
font-size: 36px;
margin-bottom: 70px;
}
.module-title + .module-subtitle {
margin-top: -35px;
}
.divider {
margin: 0;
}
.copyright {
padding: 0 5px;
}
/* -------------------------------------------------------------------
Responsive Media Queries
------------------------------------------------------------------- */
#media (min-width: 768px) {
/* Navbar */
.navbar-nav {
margin: 5px -15px;
}
.navbar-custom .navbar-brand {
padding-left: 0;
}
.navbar-custom .navbar-nav > li > a {
padding-top: 20px;
padding-bottom: 20px;
}
.navbar-transparent {
background: transparent;
padding-top: 15px;
padding-bottom: 15px;
background: transparent;
webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* Tra */
.navbar-transparent.navbar-dark .navbar-nav > li > a,
.navbar-transparent.navbar-dark .navbar-brand {
color: #212121;
}
.navbar-transparent.navbar-dark .nav > li > a:focus,
.navbar-transparent.navbar-dark .nav > li > a:hover {
color: rgba(255, 255, 255, 0.75);
}
.navbar-custom .dropdown-menu .dropdown-toggle:after {
position: absolute;
display: block;
right: 9px;
top: 50%;
margin-top: -6px;
font: normal normal normal 14px/1 FontAwesome;
font-size: 12px;
content: "\f105";
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.navbar-custom .dropdown-menu {
position: absolute;
display: block;
visibility: hidden;
opacity: 0;
}
.navbar-custom .open > .dropdown-menu {
visibility: visible;
opacity: 1;
}
.navbar-right .dropdown-menu {
right: auto;
left: 0;
}
/* Comments */
.comment .comment {
margin-left: 100px;
}
}
#media (max-width: 992px) {
/* Hero captions */
.mh-line-size-1 {
letter-spacing: 40px;
font-size: 26px;
}
.mh-line-size-2 {
letter-spacing: 28px;
font-size: 20px;
}
.mh-line-size-3 {
letter-spacing: 20px;
font-size: 22px;
}
.mh-line-size-4 {
letter-spacing: 8px;
font-size: 16px;
}
.navbar-custom {
letter-spacing: 1px;
font-size: 12px;
}
/* Portfolio grid */
.work-item,
.grid-sizer {
width: 33.3333%;
}
.work-item.wide,
.work-item.wide-tall {
width: 66.6666%;
}
}
#media (max-width: 767px) {
/* Navbar */
.navbar-custom {
letter-spacing: 2px;
font-size: 10px;
}
.navbar-transparent.navbar-dark .light-logo {
display: none !important;
}
.navbar-transparent.navbar-dark .dark-logo {
display: block !important;
}
.navbar-custom .navbar-nav .open .dropdown-menu > li > a,
.navbar-custom .navbar-nav .open .dropdown-menu .dropdown-header {
padding: 10px 25px;
}
.navbar-custom .navbar-nav .open .dropdown-menu .dropdown-menu .dropdown-header,
.navbar-custom .navbar-nav .open .dropdown-menu .dropdown-menu > li > a {
padding: 10px 35px;
}
.navbar-custom .dropdown-toggle:after, .navbar-custom .dropdown-menu .dropdown-toggle:after {
right: 15px;
content: "\f107";
}
.navbar-custom .nav > .open >.dropdown-toggle:after, .navbar-custom .dropdown-menu .dropdown.open .dropdown-toggle:after {
right: 15px;
content: "\f106";
}
/* Hero captions */
.mh-line-size-1 {
letter-spacing: 24px;
font-size: 26px;
}
.mh-line-size-2 {
letter-spacing: 16px;
font-size: 15px;
}
.mh-line-size-3 {
letter-spacing: 14px;
font-size: 14px;
}
.mh-line-size-4 {
letter-spacing: 4px;
font-size: 14px;
}
.mh-line-size-5 {
letter-spacing: 2px;
font-size: 13px;
}
.mh-line-size-6 {
font-size: 13px;
}
/* Portfolio filters */
.filters li {
display: block;
margin: 0 10px 10px;
}
.filters li:last-child {
margin: 0 10px 140px;
}
/* Portfolio grid */
.work-item,
.grid-sizer {
width: 50%;
}
.work-item.wide,
.work-item.wide-tall {
width: 100%;
}
}
#media (max-width: 500px) {
/* Hero captions */
.mh-line-size-1 {
letter-spacing: 12px;
font-size: 26px;
}
.mh-line-size-2 {
letter-spacing: 6px;
font-size: 14px;
}
.mh-line-size-3 {
letter-spacing: 4px;
font-size: 13px;
}
.mh-line-size-4 {
letter-spacing: 4px;
font-size: 12px;
}
.mh-line-size-5 {
letter-spacing: 2px;
font-size: 11px;
}
.mh-line-size-6 {
font-size: 12px;
}
/* Portfolio grid */
.work-item,
.grid-sizer {
width: 100%;
}
.work-item.wide,
.work-item.wide-tall {
width: 100%;
}
}
/* -------------------------------------------------------------------
Multi-columns-row
------------------------------------------------------------------- */
.multi-columns-row .first-in-row {
clear: left;
}
.multi-columns-row .col-xs-6:nth-child(2n + 3) { clear: left; }
.multi-columns-row .col-xs-4:nth-child(3n + 4) { clear: left; }
.multi-columns-row .col-xs-3:nth-child(4n + 5) { clear: left; }
.multi-columns-row .col-xs-2:nth-child(6n + 7) { clear: left; }
.multi-columns-row .col-xs-1:nth-child(12n + 13) { clear: left; }
#media (min-width: 768px) {
.multi-columns-row .col-xs-6:nth-child(2n + 3) { clear: none; }
.multi-columns-row .col-xs-4:nth-child(3n + 4) { clear: none; }
.multi-columns-row .col-xs-3:nth-child(4n + 5) { clear: none; }
.multi-columns-row .col-xs-2:nth-child(6n + 7) { clear: none; }
.multi-columns-row .col-xs-1:nth-child(12n + 13) { clear: none; }
.multi-columns-row .col-sm-6:nth-child(2n + 3) { clear: left; }
.multi-columns-row .col-sm-4:nth-child(3n + 4) { clear: left; }
.multi-columns-row .col-sm-3:nth-child(4n + 5) { clear: left; }
.multi-columns-row .col-sm-2:nth-child(6n + 7) { clear: left; }
.multi-columns-row .col-sm-1:nth-child(12n + 13) { clear: left; }
}
#media (min-width: 992px) {
.multi-columns-row .col-sm-6:nth-child(2n + 3) { clear: none; }
.multi-columns-row .col-sm-4:nth-child(3n + 4) { clear: none; }
.multi-columns-row .col-sm-3:nth-child(4n + 5) { clear: none; }
.multi-columns-row .col-sm-2:nth-child(6n + 7) { clear: none; }
.multi-columns-row .col-sm-1:nth-child(12n + 13) { clear: none; }
.multi-columns-row .col-md-6:nth-child(2n + 3) { clear: left; }
.multi-columns-row .col-md-4:nth-child(3n + 4) { clear: left; }
.multi-columns-row .col-md-3:nth-child(4n + 5) { clear: left; }
.multi-columns-row .col-md-2:nth-child(6n + 7) { clear: left; }
.multi-columns-row .col-md-1:nth-child(12n + 13) { clear: left; }
}
#media (min-width: 1200px) {
.multi-columns-row .col-md-6:nth-child(2n + 3) { clear: none; }
.multi-columns-row .col-md-4:nth-child(3n + 4) { clear: none; }
.multi-columns-row .col-md-3:nth-child(4n + 5) { clear: none; }
.multi-columns-row .col-md-2:nth-child(6n + 7) { clear: none; }
.multi-columns-row .col-md-1:nth-child(12n + 13) { clear: none; }
.multi-columns-row .col-lg-6:nth-child(2n + 3) { clear: left; }
.multi-columns-row .col-lg-4:nth-child(3n + 4) { clear: left; }
.multi-columns-row .col-lg-3:nth-child(4n + 5) { clear: left; }
.multi-columns-row .col-lg-2:nth-child(6n + 7) { clear: left; }
.multi-columns-row .col-lg-1:nth-child(12n + 13) { clear: left; }
}
.et-icons .box1 {
border: 1px solid #fafafa;
display: block;
width: 25%;
float: left;
padding: 0;
font-size: 13px;
margin: -1px 0 0 -1px;
}
.et-icons .box1 > span {
display: inline-block;
border-right: 1px solid #fafafa;
min-width: 60px;
min-height: 60px;
text-align: center;
line-height: 60px;
font-size: 28px;
margin-right: 5px;
}
.fa-icons {
padding: 0 15px;
}
.fa-icons > div {
padding: 0;
border: 1px solid #fafafa;
margin: -1px 0 0 -1px;
font-size: 13px;
}
.fa-icons > div > i {
display: inline-block;
margin-right: 5px;
min-width: 40px;
min-height: 40px;
border-right: 1px solid #fafafa;
line-height: 40px;
text-align: center;
font-size: 14px;
}
/* ------- CUSTOM Styles ------*/
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small {
font-weight: normal;
line-height: 1;
color: #9e9e9e;
}
.amber {color: #EB9532;}
.text-21 {color: #212121 !important;}
.bk h1, .bk .h1,
.bk h5, .bk .h5
{
line-height: 1.4;
font-weight: bold;
color: #212121 !important;
}
.module-divider {
height: 20px;
width: 100%;
background-color: #212121;
}
.vofset { padding-top: 5px !important; padding-bottom: 5px !important;}
.vofset0 { padding-top: 0px; }
.vofset1 { padding-top: 10px; }
.vofset2 { padding-top: 20px; }
.vofset3 { padding-top: 30px; }
.vofset4 { padding-top: 40px; }
.vofset5 { padding-top: 50px; }
.vofset7 { padding-top: 70px; }
.vofset10 { padding-top: 100px; }
.vofset12 { padding-top: 120px; }
.vofset14 { padding-top: 140px; }
.lofset1 { padding-bottom: 10px; }
.lofset2 { padding-bottom: 20px; }
.lofset3 { padding-bottom: 30px; }
.lofset4 { padding-bottom: 40px; }
.lofset5 { padding-bottom: 50px; }
.lofset7 { padding-bottom: 70px; }
.lofset10 { padding-bottom: 100px; }
.lofset12 { padding-bottom: 120px; }
.lofset14 { padding-bottom: 140px; }
.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}
.navbar {
min-height: 90px;
}
.navbar-custom {
padding-top: 10px;
}
.navbar-top {
padding: 5px 0px;
margin: 0px -15px;
position: relative;
background-repeat: no-repeat;
text-transform: uppercase;
letter-spacing: 0px;
text-align: right;
font-size: 10px;
color: #9e9e9e;
background: #212121;
}
.navbar-top a {
margin: 0px 0px 0px 15px !important;
color: #9e9e9e;
text-decoration: none;
text-transform: uppercase;
font: "Lato", sans-serif;
line-height: 20px;
font-size: 12px;
letter-spacing: 1px;
font-weight: bold;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition-delay: 0s;
transition-duration: 0s;
transition-property: none;
transition-timing-function: ease;
}
.navbar-top a:hover {
color: #eee;
}
.navbar-custom .navbar-toggle .icon-bar {
background: #e9e9e9;
}
.navbar-toggle .icon-bar+.icon-bar {
margin-top: 8px;
}
.navbar-toggle .icon-bar {
margin-top: 3px;
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
<!-- NAVIGATION -->
<nav class="navbar navbar-custom navbar-fixed-top">
<div class="container">
<div class="row">
<div class="col-xs-12 navbar-top hidden-xs">
Simple Links Here
</div>
</div>
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#custom-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- YOU LOGO HERE -->
<a class="navbar-brand" href="index.html">
<!-- IMAGE OR SIMPLE TEXT -->
<img class="dark-logo" src="assets/images/top_logo_3.png" width="220" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="custom-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
Home
<ul class="dropdown-menu" role="menu">
<li class="dropdown">
Multi Page
<ul class="dropdown-menu">
<li>Parallax</li>
<li>Film overlay</li>
<li>Slider</li>
<li>Text rotator</li>
<li>Youtube background</li>
</ul>
</li>
<li class="dropdown">
One page
<ul class="dropdown-menu">
<li>Parallax</li>
<li>Film overlay</li>
<li>Slider</li>
<li>Text rotator</li>
<li>Youtube background</li>
</ul>
</li>
</ul>
</li>
<li class="dropdown">
Pages
<ul class="dropdown-menu" role="menu">
<li class="dropdown">
About
<ul class="dropdown-menu">
<li>About 1</li>
<li>About 2</li>
</ul>
</li>
<li class="dropdown">
Services
<ul class="dropdown-menu">
<li>Services 1</li>
<li>Services 2</li>
</ul>
</li>
<li class="dropdown">
Contact
<ul class="dropdown-menu">
<li>Contact 1</li>
<li>Contact 2</li>
</ul>
</li>
<li class="dropdown">
Pricing
<ul class="dropdown-menu">
<li>Pricing 1</li>
<li>Pricing 2</li>
</ul>
</li>
<li>Login / Register</li>
<li>FAQ</li>
</ul>
</li>
<li class="dropdown">
Features
<ul class="dropdown-menu" role="menu">
<li>Buttons</li>
<li>Icons</li>
<li>Content boxes</li>
<li>Typography</li>
<li>Progress bars</li>
<li>Tab & Accordian</li>
<li>Pricing tables</li>
<li>Modules & Overlays</li>
</ul>
</li>
<li>Contact</li>
</ul>
</div>
</div>
</nav>
<!-- /NAVIGATION -->
Is this what you want?
Put this code:
#media only screen and (max-width: 992px){
.navbar-header {
margin: 0 auto;
text-align: center;
width: 50%;
}
.navbar-brand {
display: inline-block;
}
img.dark-logo {
text-align: center;
}
div#custom-collapse {
margin: 0 auto;
width: 50%;
}
.nav .navbar-nav .navbar-right {
width: 50%;
margin: 0 auto;
}
}
Related
I'm trying to style a navigation bar (Bootstrap 4) so when hovering over a menu item it looks like in the image or the code snippet below, but without the annoying thin blue flashing offset below the item. Pulling my hair out for hours, I'm not able to make the orange element the exact same height as the navigation bar.
Note: Since the HTML comes from a CMS, I can't alter the HTML itself. So if you answer the question please make sure to post a CSS-only solution.
*,
*::before,
*::after {
box-sizing: border-box
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}
nav {
display: block
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 0.9375rem;
font-weight: 400;
line-height: 1.5;
color: #1d2125;
text-align: left;
background-color: #fff
}
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important
}
ul {
margin-top: 0
}
a {
color: #0096d2;
text-decoration: none;
background-color: transparent
}
a:hover {
color: #005f86;
text-decoration: underline
}
button:focus:not(:focus-visible) {
outline: 0
}
button {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit
}
button {
overflow: visible
}
button {
text-transform: none
}
button {
-webkit-appearance: button
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
cursor: pointer
}
button::-moz-focus-inner {
padding: 0;
border-style: none
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button
}
.btn:not(:disabled):not(.disabled) {
cursor: pointer
}
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active {
color: #1d2125;
background-color: #ced4da;
border-color: #ced4da
}
.dropdown {
position: relative
}
.dropdown-toggle {
white-space: nowrap
}
.dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent
}
.custom-control-input:focus:not(:checked)~.custom-control-label::before {
border-color: #5babf2
}
.custom-control-input:not(:disabled):active~.custom-control-label::before {
color: #fff;
background-color: #8bc3f6;
border-color: #8bc3f6
}
.nav {
flex-wrap: wrap
}
.nav-link {
padding: 0.5rem 1rem
}
.nav-link:hover,
.nav-link:focus {
text-decoration: none
}
.navbar {
display: flex;
flex-wrap: wrap;
padding: 0.5rem 1rem
}
.navbar-brand {
padding-top: 0.32421875rem;
padding-bottom: 0.32421875rem;
font-size: 1.171875rem;
line-height: inherit;
white-space: nowrap
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none
}
.navbar-nav {
display: flex;
padding-left: 0;
margin-bottom: 0;
list-style: none
}
.navbar-expand {
flex-flow: row nowrap;
justify-content: flex-start
}
.navbar-expand .navbar-nav {
flex-direction: row
}
.navbar-expand .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem
}
.navbar-light .navbar-brand {
color: rgba(0, 0, 0, 0.9)
}
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
color: rgba(0, 0, 0, 0.9)
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.6)
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
color: rgba(0, 0, 0, 0.9)
}
.bg-white {
background-color: #fff !important
}
.border-0 {
border: 0 !important
}
.d-none {
display: none !important
}
.d-md-flex {
display: flex !important
}
.align-items-center {
align-items: center !important
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030
}
#supports (position:sticky) {}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
white-space: normal
}
.m-0 {
margin: 0 !important
}
.my-1 {
margin-top: 0.25rem !important
}
.my-1 {
margin-bottom: 0.25rem !important
}
.mr-4 {
margin-right: 1.5rem !important
}
.p-0 {
padding: 0 !important
}
.py-0 {
padding-top: 0 !important
}
.py-0 {
padding-bottom: 0 !important
}
.px-1 {
padding-right: 0.25rem !important
}
.px-1 {
padding-left: 0.25rem !important
}
.mx-auto {
margin-right: auto !important
}
.mx-auto {
margin-left: auto !important
}
:target {
scroll-margin-top: 70px
}
html,
body {
height: 100%
}
#page-wrapper {
height: 100%;
display: flex;
flex-direction: column
}
.navbar.fixed-top {
padding-top: 0;
padding-bottom: 0;
border-bottom: #dee2e6 1px solid;
align-items: stretch;
height: 61px
}
.navbar.fixed-top .nav-link {
height: 100%;
display: flex;
align-items: center;
white-space: nowrap
}
.moremenu.observed {
opacity: 1
}
.moremenu .nav-link {
border-right: none;
border-bottom: solid 3px transparent;
border-left: none
}
.moremenu .nav-link:hover,
.moremenu .nav-link:focus {
border-color: transparent;
background-color: #f8f9fa
}
.moremenu .nav-link.active {
background-color: #f8f9fa;
border-color: transparent
}
.moremenu .nav-link.active:focus,
.moremenu .nav-link.active:hover {
background-color: #f8f9fa;
border-bottom-color: #0f6cbf
}
.moremenu .nav-link:focus {
position: relative
}
.moremenu .nav-link.active {
background: transparent
}
.primary-navigation .navigation {
height: 60px
}
.primary-navigation .navigation .nav-link {
height: 60px;
border-top: 3px solid transparent
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
.primary-navigation .navigation .nav-link.active {
color: white
}
.primary-navigation .nav-item .nav-link {
position: relative;
text-transform: uppercase;
font-weight: bold;
color: #fff
}
.primary-navigation li.nav-item a.nav-link.active::after {
content: "";
position: absolute;
bottom: 14px;
height: 2px;
left: 0;
right: 0;
margin: 0 0.5em;
background-color: #ffffff
}
.navbar .dropdown-toggle,
.navbar .nav-link {
color: #fff !important
}
.navbar {
background: #003ca0 !important;
border-bottom: none !important
}
.navbar .nav-link:hover {
background: #e47e08 !important
}
.navbar .nav-link.active,
.navbar .nav-link.active:hover {
border-bottom-color: transparent
}
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<title>example navigation</title>
<body id=page-my-index class="limitedwidth page-mycourses format-site path-my gecko dir-ltr lang-de yui-skin-sam yui3-skin-sam vorabversion-uebergangs-moodle-atidia-de pagelayout-mycourses course-1 context-1 editing uses-drawers jsenabled has-region-content used-region-content has-region-side-pre empty-region-side-pre">
<div id=page-wrapper class=d-print-block>
<div> <a class="sr-only sr-only-focusable" href=#maincontent>Zum Hauptinhalt</a> </div>
<nav class="navbar fixed-top navbar-light bg-white navbar-expand" aria-label=Site-Navigation>
<div class=primary-navigation>
<nav class="moremenu navigation observed">
<ul id=moremenu-63e7e823a2eea-navbar-nav role=menubar class="nav more-nav navbar-nav">
<li data-key=home class=nav-item role=none data-forceintomoremenu=false> <a role=menuitem class=nav-link href="" tabindex=-1> Start </a> </li>
<li data-key=myhome class=nav-item role=none data-forceintomoremenu=false> <a role=menuitem class=nav-link> Dashboard </a> </li>
</ul>
</nav>
</div>
</nav>
</div>
A quick fix would be to set the height of the nav link items to be the same with the navbar:
.navbar.fixed-top {
height: 61px; /* <- Since this is set to 61px... */
}
.primary-navigation .navigation {
height: 60px; /* <- Before */
height: 61px; /* <- After: set this also to 61px */
}
.primary-navigation .navigation .nav-link {
height: 60px; /* <- Before */
height: 61px; /* <- After: and this one... */
border-top: 3px solid transparent
}
*,
*::before,
*::after {
box-sizing: border-box
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}
nav {
display: block
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 0.9375rem;
font-weight: 400;
line-height: 1.5;
color: #1d2125;
text-align: left;
background-color: #fff
}
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important
}
ul {
margin-top: 0
}
a {
color: #0096d2;
text-decoration: none;
background-color: transparent
}
a:hover {
color: #005f86;
text-decoration: underline
}
button:focus:not(:focus-visible) {
outline: 0
}
button {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit
}
button {
overflow: visible
}
button {
text-transform: none
}
button {
-webkit-appearance: button
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
cursor: pointer
}
button::-moz-focus-inner {
padding: 0;
border-style: none
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button
}
.btn:not(:disabled):not(.disabled) {
cursor: pointer
}
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active {
color: #1d2125;
background-color: #ced4da;
border-color: #ced4da
}
.dropdown {
position: relative
}
.dropdown-toggle {
white-space: nowrap
}
.dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent
}
.custom-control-input:focus:not(:checked)~.custom-control-label::before {
border-color: #5babf2
}
.custom-control-input:not(:disabled):active~.custom-control-label::before {
color: #fff;
background-color: #8bc3f6;
border-color: #8bc3f6
}
.nav {
flex-wrap: wrap
}
.nav-link {
padding: 0.5rem 1rem
}
.nav-link:hover,
.nav-link:focus {
text-decoration: none
}
.navbar {
display: flex;
flex-wrap: wrap;
padding: 0.5rem 1rem
}
.navbar-brand {
padding-top: 0.32421875rem;
padding-bottom: 0.32421875rem;
font-size: 1.171875rem;
line-height: inherit;
white-space: nowrap
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none
}
.navbar-nav {
display: flex;
padding-left: 0;
margin-bottom: 0;
list-style: none
}
.navbar-expand {
flex-flow: row nowrap;
justify-content: flex-start
}
.navbar-expand .navbar-nav {
flex-direction: row
}
.navbar-expand .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem
}
.navbar-light .navbar-brand {
color: rgba(0, 0, 0, 0.9)
}
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
color: rgba(0, 0, 0, 0.9)
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.6)
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
color: rgba(0, 0, 0, 0.9)
}
.bg-white {
background-color: #fff !important
}
.border-0 {
border: 0 !important
}
.d-none {
display: none !important
}
.d-md-flex {
display: flex !important
}
.align-items-center {
align-items: center !important
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030
}
#supports (position:sticky) {}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
white-space: normal
}
.m-0 {
margin: 0 !important
}
.my-1 {
margin-top: 0.25rem !important
}
.my-1 {
margin-bottom: 0.25rem !important
}
.mr-4 {
margin-right: 1.5rem !important
}
.p-0 {
padding: 0 !important
}
.py-0 {
padding-top: 0 !important
}
.py-0 {
padding-bottom: 0 !important
}
.px-1 {
padding-right: 0.25rem !important
}
.px-1 {
padding-left: 0.25rem !important
}
.mx-auto {
margin-right: auto !important
}
.mx-auto {
margin-left: auto !important
}
:target {
scroll-margin-top: 70px
}
html,
body {
height: 100%
}
#page-wrapper {
height: 100%;
display: flex;
flex-direction: column
}
.navbar.fixed-top {
padding-top: 0;
padding-bottom: 0;
border-bottom: #dee2e6 1px solid;
align-items: stretch;
height: 61px
}
.navbar.fixed-top .nav-link {
height: 100%;
display: flex;
align-items: center;
white-space: nowrap
}
.moremenu.observed {
opacity: 1
}
.moremenu .nav-link {
border-right: none;
border-bottom: solid 3px transparent;
border-left: none
}
.moremenu .nav-link:hover,
.moremenu .nav-link:focus {
border-color: transparent;
background-color: #f8f9fa
}
.moremenu .nav-link.active {
background-color: #f8f9fa;
border-color: transparent
}
.moremenu .nav-link.active:focus,
.moremenu .nav-link.active:hover {
background-color: #f8f9fa;
border-bottom-color: #0f6cbf
}
.moremenu .nav-link:focus {
position: relative
}
.moremenu .nav-link.active {
background: transparent
}
.primary-navigation .navigation {
height: 61px
}
.primary-navigation .navigation .nav-link {
height: 61px;
border-top: 3px solid transparent
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
.primary-navigation .navigation .nav-link.active {
color: white
}
.primary-navigation .nav-item .nav-link {
position: relative;
text-transform: uppercase;
font-weight: bold;
color: #fff
}
.primary-navigation li.nav-item a.nav-link.active::after {
content: "";
position: absolute;
bottom: 14px;
height: 2px;
left: 0;
right: 0;
margin: 0 0.5em;
background-color: #ffffff
}
.navbar .dropdown-toggle,
.navbar .nav-link {
color: #fff !important
}
.navbar {
background: #003ca0 !important;
border-bottom: none !important
}
.navbar .nav-link:hover {
background: #e47e08 !important
}
.navbar .nav-link.active,
.navbar .nav-link.active:hover {
border-bottom-color: transparent
}
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<title>example navigation</title>
<body id=page-my-index class="limitedwidth page-mycourses format-site path-my gecko dir-ltr lang-de yui-skin-sam yui3-skin-sam vorabversion-uebergangs-moodle-atidia-de pagelayout-mycourses course-1 context-1 editing uses-drawers jsenabled has-region-content used-region-content has-region-side-pre empty-region-side-pre">
<div id=page-wrapper class=d-print-block>
<div> <a class="sr-only sr-only-focusable" href=#maincontent>Zum Hauptinhalt</a> </div>
<nav class="navbar fixed-top navbar-light bg-white navbar-expand" aria-label=Site-Navigation>
<div class=primary-navigation>
<nav class="moremenu navigation observed">
<ul id=moremenu-63e7e823a2eea-navbar-nav role=menubar class="nav more-nav navbar-nav">
<li data-key=home class=nav-item role=none data-forceintomoremenu=false> <a role=menuitem class=nav-link href="" tabindex=-1> Start </a> </li>
<li data-key=myhome class=nav-item role=none data-forceintomoremenu=false> <a role=menuitem class=nav-link> Dashboard </a> </li>
</ul>
</nav>
</div>
</nav>
</div>
I'm trying to change the colors of my menu bar, making them black just like it shows up in here with the 3 horizontal black bars at the top right in the figure below. However, I don't know what to look for in my CSS. What field controls it?
Edit: adding my code here to facilitate
/*
* .scss template
*/
nav {
background-color: #f5f5f5;
ul a {
color: $textgray;
img {
height: 64px;
}
}
ul li {
list-style-type: none;
}
i.right {
float: right;
margin-left: -5px;
}
.navlogo img {
height: 64px;
padding: 5px;
}
.navlogo:hover {
background-color: rgba(0, 0, 0, 0.0);
}
}
#toc-sidebar {
#media screen and (min-width: 992px) {
position: absolute;
top: 85px;
right: 23px;
width: 22%;
}
#media screen and (max-width: 992px) {
display: none;
}
&.fix-scroll {
position: fixed;
top: 7px;
}
padding: 3px;
a {
color: #666
}
a:hover {
text-decoration: underline;
font-weight: bold;
}
ul {
li {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
margin-bottom: 0px;
.selected {
font-weight: bold;
}
.H1 {
margin-left: 0px;
}
.H2 {
margin-left: 10px;
}
.H3 {
margin-left: 20px;
}
}
}
.content {
background-color: dark;
padding-bottom: 64px;
margin-bottom: 64px;
ul {
margin-left: 1.2rem;
li {
list-style-type: disc;
}
}
dl {
margin-left:10px;
}
}
.dropdown-content li > a, .dropdown-content li > span {
color: $textgray;
}
h3 {
code {
font-size: 2.5rem;
}
}
#media only screen and (max-width : 600px) {
#index-banner .section {
top: 0;
}
}
.icon-block {
padding: 0 15px;
.material-icons {
font-size: inherit;
}
}
footer.page-footer {
margin: 0;
background-color: #f5f5f5;
}
.row {
a {
color: blue;
}
}
code {
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, monospace;
font-size: 13px;
color: #333;
background: #efefef;
border: 1px solid #c7c7c7;
border-radius: 2px;
padding: 0px 1px;
}
pre {
color:#efefef;
background: #333;
padding:8px 15px;
border-radius: 3px;
border:1px solid #c7c7c7;
overflow: auto;
overflow-y: hidden;
code {
color:#efefef;
background: #333;
text-shadow: 0px 1px 0px #000;
margin: 0px;
padding: 0px;
border: none;
}
}
.center-image {
margin: 0 auto;
display: block;
}
table {
line-height: 1.0rem;
}
table.border {
thead {
border-bottom: none;
}
tbody {
border: 1px solid black;
}
}
html {
font-size: 90%;
}
body {
background: #ffffff;
color: $textgray;
line-height: 1.6;
}
.bread {
padding-top: 48px;
margin: 48px;
ul {
margin-left: 1.2rem;
li {
list-style-type: disc;
}
}
dl {
margin-left:10px;
}
}
img.flip {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
.transition,.play {
-webkit-transition: .5s;
-moz-transition: .5s;
transition: .5s;
-webkit-transition-timing-function: cubic-bezier(.4,0,.5,1);
-moz-transition-timing-function: cubic-bezier(.4,0,.5,1);
transition-timing-function: cubic-bezier(.4,0,.5,1);
}
.nodec a {
font-weight:normal;
text-decoration:none;
color:#444;
}
.topborder {
border-top-style: solid;
border-color: $textgray;
border-width: 2px;
}
.bottomborder {
border-bottom-style: solid;
border-color: $textgray;
border-width: 2px;
}
.button-collapse {
color: #textgray;
}
.compact td {
padding: 5px;
}
.panel-info {
border: 1px solid black;
.panel-heading {
background-color: $textgray;
color: white;
h3 {
font-size: 2rem;
margin-top: 0px;
}
}
.panel-body {
padding-left: 1em;
.row {
margin-bottom: 5px;
}
ul {
margin-top: 2px;
margin-bottom: 2px;
margin-left: 2rem;
}
}
}
thanks in advance
You can add this to your CSS and append the class of your navbar and alter the below code to make it dark.
<style>
/* Modify the background color */
.navbar-custom {
background-color: dark;
}
/* Modify text color */
.navbar-custom .navbar-text {
color: white;
}
</style>
This is a basic hamburger-menu:
div {
width: 35px;
height: 5px;
background-color: black;
margin: 6px 0;
}
<p>A menu icon:</p>
<div></div>
<div></div>
<div></div>
From: https://www.w3schools.com/howto/howto_css_menu_icon.asp
Just change the background-color to your color
(I'm not sure whether this answers your question - I'm sorry if not)
On my site, the items under home-boxes class on the mobile phone appear to have extra padding on the left. How can I avoid it?
<div class="container">
<div class="row space" >
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/why-we-are-needed/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/11.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Why we are needed</h3>
<p>More than half of Karachi’s population lives in low-resource densely-packed neighborhoods, where there are few or no qualified doctors conveniently located. Pollution is high, and diseases are rampant.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12 ">
<a href="http://www.inspuratesystems.com/clf/emergency-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/21.jpg">
<div class="col-xs-12" id="home-boxes" >
<h3>Emergency Care</h3>
<p>During the floods of 2010, CNN correspondent Dr. Sanjay Gupta did a news segment on the dilapidated children’s emergency room (ER) at Civil Hospital, Karachi.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/primary-care-2/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/3.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Primary Care</h3>
<p>ChildLife Foundation initiated a partnership with SINA Trust in 2012 under the leadership of their common trustee, Dr. Naseeruddin Mahmood. Since 1998, SINA has been operating primary care clinics in low-income.</p>
</div>
</a>
</div>
<div class="col-md-3 col-xs-12">
<a href="http://www.inspuratesystems.com/clf/preventive-care/">
<img class="center-block" src="http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/5.jpg">
<div class="col-xs-12" id="home-boxes">
<h3>Preventive Care</h3>
<p>394,000 children in Pakistan die before their fifth birthdays. 122,000 of them did not make it past their first year of life. As a result, Pakistan has the third highest mortality rate in the world, primarily because of preventable... </p>
</div>
</a>
</div>
</div>
</div>
CSS:
/*
Theme Name: Child Life Foundation
Theme URI: http://underscores.me/
Author: Fahad Uddin
Author URI: http://underscores.me/
Description: Inspurate has created a website template for Child Life Foundation
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: child-life-foundation
Tags:
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Child Life Foundation is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
## Links
## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
## Posts and pages
## Asides
## Comments
# Infinite scroll
# Media
## Captions
## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
color:#dbff98;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
color: #404040;
/* font-family: sans-serif;
*/
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
text-transform: uppercase;
color:#9bbd1b;
}
p {
margin-bottom: 1.5em;
}
dfn,
cite,
em,
i {
font-style: italic;
}
blockquote {
margin: 0 1.5em;
}
address {
margin: 0 0 1.5em;
}
pre {
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
code,
kbd,
tt,
var {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
font-size: 0.9375rem;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark,
ins {
background: #fff9c0;
text-decoration: none;
}
big {
font-size: 125%;
}
/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
body {
background: #fff; /* Fallback for when there is no custom background color defined. */
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
}
blockquote,
q {
quotes: "" "";
}
hr {
background-color: #ccc;
border: 0;
height: 1px;
margin-bottom: 1.5em;
}
ul,
ol {
/* margin: 0 0 1.5em 3em; */
/* margin: 0 0 1.5em 3em; */
/* margin: 0 0 1.5em -2em; */
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
li > ul,
li > ol {
margin-bottom: 0;
margin-left: 1.5em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 1.5em 1.5em;
}
img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
}
table {
margin: 0 0 1.5em;
width: 100%;
}
/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
border: 1px solid;
border-color: #FFF;
border-radius: 0px;
background: #9bbd1b;
/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); */
color: #FFF;
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: .6em 1em .4em;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
border-color: #ccc #bbb #aaa;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
border-color: #aaa #bbb #bbb;
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
color: #666;
border: 0px solid #FFF;
border-radius: 0px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
color: #111;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
padding: 3px;
}
textarea {
padding-left: 3px;
width: 100%;
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
color: #dbff98;
}
/*
a:visited {
color: purple;
}
*/
a:hover,
a:focus,
a:active {
color: #FFFFFF;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
clear: both;
display: block;
float: left;
width: 100%;
}
.main-navigation ul {
display: none;
list-style: none;
margin: 0;
padding-left: 0;
}
.main-navigation li {
float: left;
position: relative;
}
.main-navigation a {
display: block;
text-decoration: none;
}
.main-navigation ul ul {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
float: left;
position: absolute;
top: 1.5em;
left: -999em;
z-index: 99999;
}
.main-navigation ul ul ul {
left: -999em;
top: 0;
}
.main-navigation ul ul a {
width: 200px;
}
.main-navigation ul ul li {
}
.main-navigation li:hover > a,
.main-navigation li.focus > a {
}
.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}
.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
left: auto;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
left: 100%;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
display: block;
}
#media screen and (min-width: 37.5em) {
.menu-toggle {
display: none;
}
.main-navigation ul {
display: block;
}
}
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
margin: 0 0 1.5em;
overflow: hidden;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
float: left;
width: 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
float: right;
text-align: right;
width: 50%;
}
/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
outline: 0;
}
/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
content: "";
display: table;
table-layout: fixed;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
clear: both;
}
/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
margin: 0 0 1.5em;
}
/* Make sure select elements fit in widgets. */
.widget select {
max-width: 100%;
}
/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
display: block;
}
.hentry {
margin: 0 0 1.5em;
}
.byline,
.updated:not(.published) {
display: none;
}
.single .byline,
.group-blog .byline {
display: inline;
}
.page-content,
.entry-content,
.entry-summary {
margin: 1.5em 0 0;
}
.page-links {
clear: both;
margin: 0 0 1.5em;
}
/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
display: none;
}
/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
word-wrap: break-word;
}
.bypostauthor {
display: block;
}
/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
display: block;
}
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
margin-bottom: 1.5em;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption .wp-caption-text {
margin: 0.8075em 0;
}
.wp-caption-text {
text-align: center;
}
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
margin-bottom: 1.5em;
}
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 100%;
}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
}
.site{
border-top: 10px solid #9bbd1b;
}
.line{
border-top: 5px solid #9bbd1b;
}
.site-header{
background-color:#ffffde;
}
/* Small devices (tablets, 768px and up) */
#media (min-width: 768px) {
.nav>li{
display: inline-block !important;
padding: 0 0 0 34px;
width: 160px;
}
.footerspace{
margin-top:65px;
}
}
.nav>li a{
font-size: 13px;
text-transform: uppercase;
color:#484848;
font-weight: bold;
font-family: HelveticaRounded;
}
.nav > li > a:hover{
background-color:#9bbd1b !important;
color:#FFF;
}
.nav li ul{
list-style-type: none;
}
.nav li li a{
font-size: 13px;
text-transform: uppercase;
color:#FFF;
font-weight: bold;
font-family: HelveticaRounded;
text-decoration:none;
margin-left:-10px;
width: 160px;
padding: 10px 15px 10px;
background-color:#9bbd1b !important;
}
.search{
height:50px;
width:50px;
}
#media screen and (min-width: 769px) {
/*
.navbar{
margin-top: 15px;
}
*/
.search{
margin-top: 100px; /* 10 pixel extra than navbar because in navbar there is a padding-top of 10 pixel on text. */
}
.donate{
margin-top: 60px;
}
.space{
margin: 50px 0;
}
.logo{
margin-top: 13px;
}
}
h3{
font-size:19px;
}
.navbar{
float:right;
}
.footerwidget{
font-size:14px; color:#989898; margin-top:33px;
}
.footerheading h2{
font-size: 18px;
color: #FFF;
text-transform: capitalize;
}
#media screen and (max-width: 769px) {
.nav {
margin-top:50px;
}
.footertext, .footertext a{
text-align:center;
}
}
.green{
background-color:#8ab51e;
margin: 0 auto;
}
.green h3{
color:#FFF;
}
.navbar{
margin-top: -7px;
margin-bottom: -12px;
}
.btn{
background-color:#9bbd1b;
}
.white, .white a {
color: #fff;
}
.btn-danger:hover{
background-color: #000000;
}
.greenIcon, .greenIcon a {
color: #9bbd1b;
}
.btn-white {
background: #FFF;
color: #ffffff;
}
.btn-white:hover {
background: #FFF;
color: #ffffff;
}
.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group{
background-color: #9bbd1b !important;
border: 1px solid #9bbd1b !important;
}
.primary-menu{
font-family: HelveticaRounded;
}
#home-boxes{
border: 1px solid #ddd; border-style: solid;
border-top: solid #8ab51e; height: 265px;
color:#404040;
}
#home-boxes:hover{
background-color:#8ab51e;
color:#FFF;
}
#home-boxes:hover h3{
background-color:#8ab51e;
color:#FFF;
}
#
.donate_bg{
background-image: url("http://www.inspuratesystems.com/clf/wp-content/uploads/2015/12/donate_image.png");
}
.donate_bg h3{
font-size: 25px;
font-family: HelveticaRounded;
}
.footertext, .footertext a{
color:#989898;
font-size:16px;
margin-top:30px;
}
.navbar .nav>li>a:focus, .navbar .nav>li>a:hover{
color:#FFFFFF;
}
.input-group .form-control, .input-group-addon, .input-group-btn{
height: 31px;
}
#secondary{
background-color: #FAFAFA;
}
.ubermenu-skin-grey-white .ubermenu-submenu, .ubermenu-skin-grey-white .ubermenu-submenu .ubermenu-target{
color:#FFF !important;
}
#media screen and (min-width: 769px) {
#main{
margin-top:50px;
}
#main a{
color:#9bbd1b;
}
#secondary a{
color:#808080;
}
#secondary li{
line-height: 20px;
padding: 15px 50px;
list-style-type: 009B;
font-size: 18px;
}
#secondary li:before {
content: "\00BB \0020";
}
#secondary ul {
list-style:none;
}
.col-md-9.donate .col-md-3 > a {
background: #D20059 none repeat scroll 0% 0%;
font-family: HelveticaRounded;
color: #fff;
font-size: 16px;
padding: 5px 20px;
display: inline-block;
}
.col-md-9.donate .col-md-3 > a > img
{
width: 20px;
}
#media only screen and (min-width:300px) and (max-width: 992px) {
.col-md-9.donate .col-md-3 > a {
width: 100% !important;
float: left;
margin: 10px 0;
border-radius: 5px;
text-align: center;
height:31px;
}
}
#media only screen and (max-width:992px){
.inner-sidebar{
display:none;
}
}
.mobile{
margin: 0;
}
html, body{
overflow-x: hidden;
}
#flexslider-title{
display:none;
}
#comment{
border: 1px solid #174946;
}
Fiddle.
Take a look with the developer tools of your browser.
Assuming that we're looking at the same elements, the extra 15px on the left side is due to this on the line 732 of bootstrap-combined.no-icons.min.css:
#media (max-width: 767px) {
.row, .thumbnails {
margin-left: 0;
}
}
which resets the negative margin on the left side but not on the right side. You could counter that with setting it back to -15px on .row:
#media (max-width: 767px) {
.row {
margin-left: -15px;
}
}
Just had a look at your site. It seams the the Bootstrap css file is adding 20px padding to left and right side of the Body element using a #media query after 767px.
All you need to do is override this in your own css file. Like this:
#media screen and (max-width: 767px) {
body {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
The !important extensions will do as they say. It will override the styling no matter what the css hierarchy is. I'm putting these in to be safe as Bootstrap may override your custom css without !important extensions. Try the code above without !important extensions and see if it works also.
im trying to make compatible this template on chrome, the main problem is that every time i refresh the page, items are changing position this is the site zygi.loginet.gr and it works fine on mozilla.
/* reset/default rules */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, acronym, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, thead, tr, th, td {
margin: 0;
padding: 0;
font-size: 100%;
vertical-align: baseline;
border: 0;
outline: 0;
background: transparent;
font-family: 'open_sansregular';
}
blockquote, q {
quotes: none;
}
:focus {
outline: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a img, :link img, :visited img {
border: 0;
}
img {
max-width: 100%;
height: auto;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
}
a, .inputbox {
outline-width:0;
}
a {
/*transition: all 0.5s ease;*/
text-decoration: none;
color: #90AF63;
}
a:hover {
color: #B1BC42;
text-decoration: none;
}
body {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
background: #fff;
color: #777;
}
html {
height:100%;
width:100%;
}
p {
font-size: .9em;
font-weight: 400;
line-height: 1.8;
}
.block {
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients {
background-color: #f6f6f6;
display: inline-block;
width: 100%;
padding: 2.5em 0;
}
.block-clients h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
padding-bottom: 1em;
text-align: center;
}
.block-services {
display: inline-block;
width: 99%;
padding: .5em 0 1.5em 0;
}
.innerBlock, .contentTop .vendor-store-desc p, .contentTop .vendor-store-desc .page-header, .contentTop .topten-view, .contentTop .category-view .row {
max-width: 1210px;
margin: 0 auto;
}
/* /reset/general rules */
/*---------------------------------------------------------------------------------------*/
/* base typography */
h1{ font-size: 1.6em }
h2{ font-size: 1.4em; line-height: 1.4em; }
h3{ font-size: 1.3em }
h4{ font-size: 1.2em }
h5{ font-size: 1.1em }
h6{ font-size: 1em }
/* /base typography */
/* buttons */
button, .button, .btn, .btn-primary, #input .button {
padding: .3em 1em;
color: #fff;
border-radius: 2px;
margin-top: .5em;
transition: all .2s linear;
}
input.button:not([type="checkbox"]) {
border-top: none;
border-right: none;
border-left: none;
color: #fff;
}
a.button{
display: inline-block;
}
/* colors for diferent buttons */
.button.common {
background: transparent;
border: 2px solid rgba(255, 255, 255, .65);
}
.button.common:hover, .button.common:focus {
border: 2px solid rgba(255, 255, 255, 1);
}
/* /colors for diferent buttons */
.form-actions {
background: none;
}
/* slider / bg image */
.slider {
background-image: url(../images/mainIntroImg.jpg);
margin-top: -3px;
padding: 2em 0;
position: relative;
text-align: center;
line-height: 2.4em;
color: #fff;
background-size: auto;
}
.slider .innerBlock > .moduletable {
background: url(../images/sliderInnerBg.png) no-repeat bottom right;
}
.slider a {
display: inline-block;
color: #fff;
}
.slider a:hover {
color: #cdcdcd;
}
.slider h1 {
border-bottom: 1px solid #fff;
color: #fff;
font-size: 2.5em;
font-weight: bold;
padding: 3% 0 2% 0;
text-align: left;
width: 50%;
}
.slider p {
font-size: 1.4em;
font-weight: 100;
line-height: 1.8em;
}
.slider-content {
display: inline-block;
margin-bottom: 5px;
width: 100%;
text-shadow: 5px 5px 10px #888;
}
.slider-content-desc {
width: 53%;
}
ul.slider-services {
background: rgba(125, 167, 217, .7);
padding: 29.5px 2%;
width: 48.6%;
}
ul.slider-services li {
display: inline-block;
}
ul.slider-services li::after {
content: "//";
color: #B4A16D;
text-shadow: 0px 1px 1px #333;
padding: 0 4px;
}
.blog .item {
text-align: center;
transition: all .2s linear;
margin: 1em 1%;
padding: 1em 0;
}
.blog .item:hover, .services ul li:hover {
background: #eee;
}
.blog .item h2 {
font-size: 1em;
}
.blog .item-image.pull-left {
float: none;
}
.blogPreview .servicesImg {
text-align: center;
}
.services ul li, .contentCustomers ul li, .blogPreview ul li {
padding: .25%;
margin: 0 .25%;
text-align: center;
display: inline-block;
vertical-align: top;
}
.services ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.blogPreview ul li {
width: 23.7%;
transition: all .2s linear;
padding-bottom: .5em;
}
.contentCustomers ul li {
width: 15.3%;
}
.servicesImg, .blogPreview ul li > img {
display: inline-block;
width: 100%;
transition: .2s linear all;
border-radius: 50%;
}
.blogPreview .servicesImg img, .logiBlog .leadingArt > .item-image img {
/*max-height: 171px;*/
max-width: 100%;
height: auto;
padding: 6px;
background: #fff;
border: 1px solid #ddd;
box-sizing: border-box;
}
.blogPreview li:hover .servicesImg img {
border: 1px solid #999;
}
.mod-articles-category-title {
color: #343433;
transition: color 0.2s linear 0s;
line-height: 1em;
padding: .3em 0;
margin-bottom: .4em;
display: inline-block;
}
a.mod-articles-category-title:hover {
color: #71A45B;
}
p.mod-articles-category-introtext{
font-size: .9em;;
font-weight: 400;
line-height: 1.6;
min-height: 6.3em;
}
.services .mod-articles-category-title {
font-size: 1.3em;
}
/* /services */
/* blogPreview */
.blogPreview li a, .blogPreview li span {
text-align: left;
display: inline-block;
width: 100%;
}
.blogPreview a.mod-articles-category-title {
color: #6190be;
font-size: .9em;
line-height: 1.2em;
font-weight: 700;
}
.blogPreview a.mod-articles-category-title:hover {
color: #444;
}
.blogPreview .mod-articles-category-date {
font-size: .8em;
}
/* /blogPreview */
/* content blocks and particular (.)block - sections styling */
.contentTop {
padding: 0 0;
}
.xselling a, .xselling {
color: #000;
text-align: center;
}
..xselling a {
margin: .2em 0;
}
.xselling {
padding: 1em 0;
float: left;
border-top: 1px solid #000;
}
.page-header, .topten-view h4, .xselling h3 {
font-size: 1.8em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding: 0;
border: none;
position: relative;
}
.page-header, .topten-view h4 {
margin: 2em auto!important;
}
.page-header h2 {
display: inline;
line-height: 0;
padding: 0 .5em;
}
.topten-view h4:before, .topten-view h4:after, .xselling h3:before, .xselling h3:after {
background: #90AF5F;
}
.page-header:before, .page-header:after{
background: #000;
}
.page-header:before, .page-header:after,
.topten-view h4:before, .topten-view h4:after,
.xselling h3:before, .xselling h3:after {
content: "";
display: block;
width: 30%;
height: 2px;
position: absolute;
top: 40%;
}
.page-header:before,
.topten-view h4:before,
.xselling h3:before {
left: 0;
}
.page-header:after,
.topten-view h4:after,
.xselling h3:after {
right: 0;
}
.block h3 {
font-size: 2em;
font-weight: 300;
letter-spacing: -1px;
text-align: center;
padding-bottom: .5em;
}
.pxBg {
background-attachment: fixed;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;
}
.whiteTrans {
background: rgba(255,255,255,.45);
padding: 2.5em 0;
text-align: center;
}
.vendor-store-desc {
background-image: url(../images/shopBg.jpg);
margin: 0;
color: #000;
}
.communication {
background: #6190BE;
text-align: center;
display: inline-block;
margin: auto;
width: 100%;
padding: 2% 0;
}
.communicationCont {
display: inline-block;
margin: auto;
width: 48%;
}
.communicationText {
display: block;
margin: auto;
color: #fff;
font-size: 2em;
line-height: 2em;
}
.communicationImg {
display: block;
float: left;
}
.communicationImg img {
}
.bgContThree, .contentHeader {
background-image: url(../images/logiPxBg1.jpg);
color: #fff;
font-size: 1.4em;
line-height: 1.2em;
}
.bgContThree {
background: #6190BE;
}
/* content blocks and particular (.)block - sections styling */
/* preFooter */
.preFooter {
background: #6190be;
color: #fff;
text-align: center;
font-size: 1.2em;
line-height: 1.6em;
font-style: italic;
margin-bottom: -4px;
}
.preFooter img {
vertical-align: middle;
}
/* pre foter quote + contnent header*/
.bottomQuote {
color: #fff;
}
.contentHeader, .bottomQuote {
text-align: center;
}
.contentHeader h1 {
padding-bottom: .3em;
margin-bottom: .3em;
}
.bottomQuote p, .contentHeader p {
font-weight: 100;
line-height: 1.25;
padding-bottom: 20px;
display: inline-block;
width: 100%;
}
.bottomQuote p {
font-size: 1.4em;
}
/* /preFooter */
/* Footer */
.footTop > div {
display: block;
float: left;
border-right: 1px solid #91B062;
width: 24%;
margin-right: 1%;
}
.footer.block {
display: block;
}
.footTop > div:last-child {
border: none;
margin-right: 0;
}
.footerBottom .innerBlock > div {
display: inline-block;
width: 48%;
}
.footer3 span, .footer4 p > *{
display: block;
float: left;
width: 65%;
margin-left: 20%;
padding: .5em;
}
.footAdd:before, .footPhone:before {
content: '';
display: block;
width: 17px;
height: 20px;
margin-right: .4em;
background-image: url(../images/miniSprite.png);
background-repeat: no-repeat;
float: left;
}
.footAdd:before {
background-position: 0 0;
}
.footPhone:before {
background-position: -17px 0;
}
a.footFbLnk {
background: #fff;
color: #4C4C4C;
border-radius: 4px;
font-weight: 700;
}
.copyYear {
float: right;
text-align: right;
}
/* SOCIAL ICONS */
.social, .social > li {
display: inline-block;
}
.social > li.skype {
width: 100%;
text-align: center;
}
.social > li > a {
background: #fff;
border-radius: 50%;
color: #000;
display: inline-block;
font: 1.3em/2.3em 'icons';
height: 2.3em;
width: 2.3em;
position: relative;
text-align: center;
transition: all 0.4s ease-out 0s;
text-decoration: none;
margin: .2em;
}
.social > li a:hover {
background: #000;
color: #fff;
}
.social i {
font: 1em/2em 'icons';
}
/* footer */
.footer{
background: #363636;
color: #91B062;
padding: 1em 0;
font-size: 90%;
}
.footer .logo {
width: 100%;
}
.footer h3 {
color: #91B062;
margin-bottom: .5em;
}
.footTop {
padding: 1em 0;
}
.footer ul.menu li a {
color: #91B062;
font-size: .9em;
margin-bottom: .2em;
}
.footer ul.menu li a:hover, .footer ul.menu li a:focus {
background: transparent;
}
/** mailchimp form **/
#mc_embed_signup {
background: #202020;
display: inline-block;
width: 90%;
padding: 1.2em 5% 1.7em;
text-align: left;
border-radius: 3px;
}
#mc_embed_signup h2 {
font-size: .8em;
color: #ccc;
}
#mc_embed_signup label {
display: none;
}
#mc_embed_signup input#mce-EMAIL {
color: #ecebe9;
float: left;
margin: 0 18px 0 0;
max-width: 100%;
position: relative;
width: 280px;
color: #444;
z-index: 10;
}
#mc_embed_signup input.button {
vertical-align: top;
display: inline-block;
float: right;
max-width: 20%;
margin: 0;
}
.mc-field-group {
position: relative;
max-width: 50%;
}
.mce_inline_error {
}
/** /mailchimp form **/
/* /footer */
/* footer bottom */
.footerBottom {
padding: 1em 0;
margin: .7em 0;
}
/* /footer bottom */
/* Contact Form additions */
.contact {
width: 70%;
text-align: center;
padding-bottom: 1em;
}
.contact h2 {
border-bottom: 1px solid #E8E8E8;
color: #676767;
line-height: 0;
margin: 1.5em 0 1em;
font-size: 2em;
font-weight: 300;
letter-spacing: 0.5px;
}
.contact h2 span {
background: #fff;
padding: 0 1em;
}
.contact, .contactRight {
display: inline-block;
vertical-align: top;
}
.contactRight {
width: 28%;
margin: 9.55em 0 0 1.5%;
}
.contact h3 {
font-size: 2em;
padding: 1em 0;
margin: .5em 0;
}
input:not([type='checkbox']),input:not([type='submit']), textarea {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-radius: 0;
background-color: #efefef;
border-color: -moz-use-text-color -moz-use-text-color #fff;
border-image: none;
border-style: none none solid;
border-width: 0 0 1px;
box-shadow: 1px 5px 9px rgba(0, 0, 0, 0.09) inset;
color: #555;
font-size: .8em;
font-weight: 400;
line-height: 1.2em;
padding: .8em 1%;
transition: all 0.2s linear 0s;
width: 98%;
}
input:not([type='checkbox']):focus, input:not([type='submit']):focus, textarea:focus {
box-shadow: 0!important;
}
/** contact form labels **/
.contact-form label {
display: inline-block;
width: 100%;
text-align: left;
padding-bottom: .3em;
}
.contact-form .form-horizontal .control-label {
display: inline-block;
width: 100%;
}
.contact-form .form-horizontal .controls {
margin: 0;
}
.contact-form .form-horizontal .form-actions {
padding: 0;
border: none;
text-align: left;
}
/** /contact form labels **/
/** contact block inside the sidebar **/
.sidebar > .contactSidebar h3 {
text-align: center;
}
.sidebar > .contactSidebar {
padding: 2em;
box-sizing: border-box;
border: 1px solid #e3e3e3;
text-align: center;
}
/** /contact block inside the sidebar **/
/* /normal blog layout - using the parent class .logiBlog */
/* bootstrap overrides and additional exceptions */
.contactRight .dl-horizontal dt {
width: auto;
}
.contactRight .dl-horizontal dd {
margin-left: 2em;
}
dl.contact-address {
padding: 0 0 1em 0;
margin: .5em 0;
}
dl.contact-address span {
display: inline-block;
width: 100%;
}
dl.contact-address > dt, dl.contact-address > dd {
display: inline-block;
padding: .3em 0;
}
dl.contact-address > dd {
width: 80%;
}
.item-page ol, .item-page ul {
margin: 0 0 10px 25px;
padding: 0;
font-size: 0.9em;
font-weight: 400;
line-height: 1.8;
}
#portfolioMini ul, .portfolioSide ul, ul.latestnews {
margin: 0;
list-style: none;
}
/* bootstrap overrides */
/* career page */
ul.careerDpts {
display: block;
width: 100%;
margin: 0 auto;
position: relative;
height: 100%;
min-height: 40em;
}
ul.careerDpts li {
width: 20%;
height: 100%;
min-height: 4.5em;
display: inline-block;
padding: 1em 0;
color: #fff;
border-radius: 20px;
background: #ccc;
margin: 4%;
position: absolute;
height: 3em;
text-align: center;
font-size: 1.2em;
font-weight: 700;
line-height: 1.4em;
transition: .2s all linear;
cursor: pointer;
}
ul.careerDpts li span {
display: inline-block;
vertical-align: middle!important;
width: 70%;
height: 100%;
margin-top: 6%;
}
ul.careerDpts li:nth-child(6) span, ul.careerDpts li:nth-child(2) span {
width: 65%;
}
ul.careerDpts li:nth-child(4) span {
width: 60%;
}
ul.careerDpts li:nth-child(1) span, ul.careerDpts li:nth-child(5) span, ul.careerDpts li:nth-child(6) span {
margin: 0;
}
ul.careerDpts li:hover, ul.careerDpts li:hover:after {
background: #ccc!important;
color: #6190be;
}
ul.careerDpts li:after {
content: "";
display: block;
height: 9.25em;
background: #6190be;
width: .2em;
border-radius: 5px;
position: absolute;
}
ul.careerDpts li:nth-child(1):after {
height: 5.2em;
right: 49%;
bottom: -6em;
}
ul.careerDpts li:nth-child(2):after {
right: 138%;
top: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(3):after {
left: 138%;
top: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(4):after {
left: 138%;
bottom: -109px;
transform: rotate(-78deg);
}
ul.careerDpts li:nth-child(5):after {
right: 138%;
bottom: -109px;
transform: rotate(78deg);
}
ul.careerDpts li:nth-child(6):after {
height: 0;
width: 0;
}
ul.careerDpts li:nth-child(1) {
background: #E80719;
top: 0;
left: 36%;
}
ul.careerDpts li:nth-child(2) {
background: #0156EF;
bottom: 0;
right: 0;
}
ul.careerDpts li:nth-child(3) {
background: #EF7700;
bottom: 0;
left: 0;
}
ul.careerDpts li:nth-child(4) {
background: #01AF00;
top: 15%;
left: 0;
}
ul.careerDpts li:nth-child(5) {
background: #7101D2;
top: 15%;
right: 0;
}
ul.careerDpts li:nth-child(6) {
top: 40%;
left: 36%;
color: #6190be;
/* elements revealing effects */
.checkElm {
transition: .5s all linear;
}
.hiddenElm {
opacity: 0;
}
.hiddenElm.checkedElm {
opacity: 1;
}
.revealElm {
opacity: 1;
}
/* elements revealing effects */
/* VM Related */
.browseProductImage {
max-width: 100%;
max-height: inherit;
height: auto;
}
.contentTop .category-view .row .category .spacer h2 a img {
max-width: 125px;
height: auto;
}
.innerRight .xselling h3 {
margin: .3em 0;
}
.topten-view h4, .xselling h3 {
color: #90AF5F;
}
.contentTop block .innerBlock ,.xselling .moduletable h3{
background-color:#8ec640;
color:#fff;
height:25px;
text-align:center;
vertical-align:top;
border-radius:10px;
}
.contentTop block .innerBlock ,.xselling .moduletable h3:before, .xselling .moduletable h3:after{
display:none;
text-align:center;
}
.contentTop block .innerBlock ,.xselling .moduletable .vmgroup{
padding-top:17px;
}
.topten-view {
padding: 0 0 2em 0;
}
.contentTop div.product {
border: none;
position: relative;
}
.contentTop div.vm-details-button {
display: none;
position: absolute;
top: 0;
transition: .3s all linear;
}
.contentTop div.vm-details-button a.product-details {
background: none;
border: 2px solid #fff;
color: #fff;
margin-top: 57%;
}
.contentTop div.product:hover div.vm-details-button {
display: block;
background: rgba(145,176,98,.65);
height: 70%;
width: 100%;
}
.contentTop .vm3pr-0 .addtocart-area {
min-height: inherit;
}
.contentTop .horizontal-separator {
background: #959595;
}
/* vm hom categories layout */
.simple.category-view .category {
max-width: 25%;
margin: .3em 4%;
}
.category-view .category h2 {
padding: .3em 6%;
}
.slider.category-view {
float: left;
width: 100%;
}
.slider.category-view .category {
float: left;
max-width: 25%;
background: rgba(0,0,0,.65);
}
.slider.category-view .category {
}
.slider.category-view .category img {
max-height: 120px;
}
.slider.category-view .category:first-child {
margin-left: 25%;
}
.slider.category-view .category:nth-child(3){
margin-right: 6%;
padding: 0 20% 0 15%;
}
.slider.category-view .category:nth-child(6) {
padding: 0 3%;
}
.slider.category-view .category:nth-child(7) {
padding: 0 3% 0 6%;
margin-right: 20%;
}
.slider.category-view .category:nth-child(8) {
padding: 0 10% 0 10%;
margin-left: 14%;
}
.slider.category-view .category:nth-child(10) {
padding: 0 9% 0 21%;
}
.slider.category-view .category:nth-child(11) {
padding: 0 4% 0 11%;
margin-left: 37%;
}
.slider.category-view .category:last-child {
padding: 0 17% 0 0;
}
.slider.vm-product-descr-container-0 h2 a {
color: #000;
font-size: 1.2em;
}
.slider.vm-product-descr-container-0 {
text-align: center;
}
.breadCr {
color: #ebebeb;
padding: .4em 0;
background: #EBEBEB;
box-shadow: inset 0 0 10px #000;
font-size: 1.3em;
}
.contentTop .breadcrumb {
background: none;
margin: 0;
padding: 0;
color: #ebebeb;
}
.contentTop .breadcrumb li.active span {
color: #90AF63;
}
.contentTop .breadcrumb > li {
}
/* /vm hom categories layout */
/* VM product details */
.contentTop .vm-product-container .vm-product-media-container {
float: right;
width: 40%;
}
.contentTop .vm-product-container .vm-product-details-container {
float: left;
width: 56%;
margin-right: 4%;
}
.vm-product-details-container span.title {
display: block;
width: 100%;
margin-bottom: .5em;
font-size: 1.5em;
color: #000;
}
.product-description {
padding-bottom: 2em;
min-height: 14.3em;
}
.product-description, .product-description span {
color: #000;
font-size: 1em;
line-height: 1.5em;
}
.product-fields {
margin-top: 1em;
background-color:#e5f1d4;
border-radius:12px;
padding-left:10px;
}
.productdetails .product-fields .product-field {
margin: 0;
/*border-bottom: 1px solid #000;*/
}
.product-fields > div span.product-fields-title-wrapper {
float: left;
min-width: 45%;
}
.product-fields > div div.product-field-display {
float: left;
padding: 8px 0;
}
.product-fields > div:first-child {
/*border-top: 1px solid #000;*/
}
.product-fields > div:last-child {
border-bottom: none;
}
.product-fields > div:nth-child(odd) {
background: #e5f1d4;
border-radius:12px;
}
/* VM product details */
.product h2 a {
color: #000;
}
.product .vm-product-descr-container-0 {
text-align: center;
}
.product div.vm-details-button a {
width: 94%;
padding: 11px 3%;
}
.productdetails h1 {
color: #90AF63;
font-size: 1.45em;
font-weight: 700;
text-align: left;
border-top: 2px solid #000;
padding: .5em 0;
}
.innerRight {
padding-top: 1em;
}
/* VM product details */
/* VM Cat sidebar */
.innerRight {
width: 77%;
display: inline-block;
vertical-align: top;
}
#media screen and (min-width: 1081px) {
.slider.category-view .category, .simple.category-view .category {
width: 25%!important;
max-width: 25%!important;
}
}
I have a side bar called column left. for some reason it does not go the full height of page when I have extra panels on view.
I use bootstrap with it as well with a fixed navbar at top.
Question: Why is it side bar "column left" not going full height what every page size is. What would be the best solution to solve it?
Codepen preview
Code View http://codepen.io/riwakawebsitedesigns/pen/bdaGro/
Full View http://codepen.io/riwakawebsitedesigns/full/bdaGro/
#import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,greek-ext,vietnamese);
/* Global */
body {
/*height: 100%;*/
margin: 0;
/*min-height: 100% !important;*/
font-family: 'Open Sans', sans-serif;
overflow-x: hidden;
padding-top: 70px;
width: 100%;
}
#user-bar-chart {
height: 300px;
}
#client-bar-chart {
height: 300px;
}
a,
a:hover,
a:focus {
cursor: pointer;
text-decoration: none;
}
tr:hover a.dashboard-user:after {
font-family: FontAwesome;
content: "\f044";
font-size: 14px;
}
/* fix for bootstrap hidden and visible */
span.hidden-xs, span.hidden-sm, span.hidden-md, span.hidden-lg {
display: inline;
}
/* Layout */
.container-fluid {
padding-left: 20px;
padding-right: 20px;
}
#content {
padding-bottom: 40px;
transition: all 0.3s;
}
/* Column Left */
#column-left {
width: 50px;
min-height: 100% !important;
background-color: #515151;
position: absolute;
top: 0px;
padding-top: 100px;
z-index: 10;
transition: all 0.3s;
}
#column-left + #content {
margin-left: 50px;
}
#column-left + #content + #footer {
margin-left: 50px;
}
#media (max-width: 767px) {
#column-left {
overflow: hidden;
display: none;
}
#column-left + #content {
margin-left: 0;
}
#column-left + #content + #footer {
margin-left: 0;
}
}
/* Column Left Active */
#column-left.active {
width: 235px;
display: block;
}
#media (min-width: 768px) {
#column-left.active {
overflow: auto;
}
#column-left.active + #content {
margin-left: 235px;
}
#column-left.active + #content + #footer {
margin-left: 235px;
}
}
#media (max-width: 767px) {
#column-left.active + #content {
position: relative;
left: 235px;
}
#column-left.active + #content + #footer {
position: relative;
left: 235px;
}
}
#column-left.active {
width: 235px;
}
#column-left.active #menu li i {
font-size: 14px;
}
#column-left.active #menu > li > a > span {
display: inline;
}
#column-left.active #menu > li > ul {
position: relative;
left: auto;
top: auto;
width: auto;
visibility: visible;
}
/* Top Navbar */
.menu {
background: #eeeeee none repeat scroll 0 0;
}
.navbar {
background-color: #fff !important;
border: 0 none;
border-radius: 0;
color: #666;
margin-bottom: 0;
}
.navbar.navbar-shadow {
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08), 0 2px 0 0 rgba(0, 0, 0, 0.02);
}
#button-menu {
display: inline-block;
cursor: pointer;
color: #6D6D6D;
}
#media (max-width: 640px) {
.navbar-brand {
font-size: 14px;
padding: 15px 7px;
}
}
/* Sidebar Menu */
#menu,
#menu ul,
#menu li {
padding: 0;
margin: 0;
min-height: 100%;
list-style: none;
}
#menu {
margin-bottom: 25px;
}
#menu > li {
position: relative;
}
#menu li a {
text-decoration: none;
display: block;
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #515151;
}
#menu li a i {
font-size: 16px;
}
#menu > li > a {
color: #C4C4C4;
font-size: 14px;
padding-left: 13px;
border-bottom: 1px solid #585858;
}
#menu > li > a:hover {
background-color: #444444;
}
#menu > li > a > span {
display: none;
margin-left: 8px;
}
#menu li li a {
color: #9d9d9d;
}
#menu li li a:hover {
color: #FFFFFF;
background-color: #373737;
}
#menu li li a:before {
content: "\f101";
font-size: 14px;
font-family: FontAwesome;
margin-left: 10px;
margin-right: 10px;
transition: margin ease 0.5s;
}
#menu li li a:hover:before {
margin-right: 20px;
}
#menu > li.active > a {
color: #DDDDDD;
background: #373737;
}
#menu li.active li a {
color: #C4C4C4;
}
#menu li li.active > a:last-child {
color: #FFFFFF;
}
#menu li li.active a:last-child:before {
margin-left: 20px;
margin-right: 10px;
}
#menu > li > ul {
position: absolute;
left: 50px;
top: 0px;
width: 210px;
background-color: #444444;
visibility: hidden;
}
#menu li ul {
overflow: hidden;
}
#menu > li:hover > ul {
visibility: visible;
}
#menu li li a.parent:after, #column-left.active #menu > li a.parent:after {
font-family: FontAwesome;
content: "\f105";
float: right;
margin-right: 8px;
}
#menu li li.open > a.parent:after, #column-left.active #menu > li.open > a.parent:after {
font-family: FontAwesome;
content: "\f107";
float: right;
margin-right: 8px;
}
#menu li ul a {
padding-left: 20px;
}
#menu li li ul a {
padding-left: 40px;
}
#menu li li li ul a {
padding-left: 60px;
}
#menu li li li li ul a {
padding-left: 80px;
}
/* Panels */
.panel {
border-radius: 0px;
}
.panel .panel-heading {
position: relative;
}
.panel-heading h3 i {
margin-right: 8px;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.panel-heading i {
font-size: 16px;
font-weight: 500;
}
.panel-heading h3 {
font-size: 16px;
font-weight: 500;
display: inline-block;
}
/* Primary Panel */
.panel-primary {
border: 1px solid #c3e4f6;
border-top: 2px solid #5cb7e7;
}
.panel-primary .panel-heading {
color: #1e91cf;
border-color: #96d0f0;
background: white;
}
/* Default Panel */
.panel-default {
border: 1px solid #e8e8e8;
border-top: 2px solid #bfbfbf;
}
.panel-default .panel-heading {
color: #595959;
border-color: #e8e8e8;
background: #fcfcfc;
}
/* Info Panel */
.panel-info {
border: 1px solid #e8e8e8;
border-top: 2px solid #3c8dbc;
}
.panel-info .panel-heading {
color: #595959;
border-color: #e8e8e8;
background: #fcfcfc;
}
I believe that adding 'position:fixed;' to your #column-left should do the trick.
In that case no matter how large/long your content is, the sidebar will always remain at 100% height of viewport, fixed at the left side of the screen.
div#column-left {
width: 50px;
min-height: 100% !important;
background-color: #515151;
position: fixed;
top: 0px;
padding-top: 100px;
z-index: 10;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
Set your body as position: relative if you want your left column to take the full height of your page. I would also explicitely set your column to take full height by removing your min-height and setting top: 0; bottom:0; on your column:
body {
margin: 0;
font-family: 'Open Sans', sans-serif;
overflow-x: hidden;
padding-top: 70px;
width: 100%;
position: relative;
}
#column-left {
width: 50px;
background-color: #515151;
position: absolute;
top: 0px;
bottom: 0px;
padding-top: 100px;
z-index: 10;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
It is actually 100% of the height of the viewport. (Not 100% of the page length).
What you can do:
#column-left { position: fixed; }
use display: table-cell on #column-left and #content
use flexbox (depending on if you have to support old browsers)
I'm not sure if it matters that it follows when you scroll the page, but you could make it position:fixed.
Perhaps that's an easy fix for you