Bootstrap fixed navbar getting stuck - css

I wasn't sure how else to title this but basically what is happening is the navbar seems to be leaving a ghost image of itself. It's fixed and functions otherwise perfectly but after scrolling down on a page, when I scroll back up, it leaves an image on the area of the page that I scrolled down to. The screenshot shows the problem, although I will mention the navbar is white so it's a poor example. When it has color it leaves a colored bar across the page.
I am totally new at web design in every way so please be descriptive when answering. Thanks!
MY BOOTSTRAP CSS:
.container,
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 940px;
}
.container,
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 940px;
}
.navbar {
overflow: hidden;
margin-bottom: 0px;
color: transparent;
*position: relative;
*z-index: 2;
}
.navbar-inner {
min-height: 50px;
/* padding-left: 20px; */
padding-right: 20px;
background-color: #ffffff;
/* background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
background-repeat: repeat-x; */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
border: 1px solid #ed4542;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);*/
}
.navbar .container {
width: auto;
}
.nav-collapse.collapse {
height: auto;
}
.navbar .brand {
float: left;
display: block;
padding: 20px 20px 20px;
margin-left: -20px;
font-size: 20px;
font-weight: 200;
color: #555555;
text-shadow: 0 1px 0 #ffffff;
}
.navbar .brand:hover {
text-decoration: none;
}
.navbar-text {
margin-bottom: 0;
line-height: 30px;
}
.navbar-link {
color: #ed4542;
}
.navbar-link:hover {
color: #ed4542;
}
.navbar-form {
margin-bottom: 0;
*zoom: 1;
}
.navbar-form:before,
.navbar-form:after {
display: table;
content: "";
line-height: 0;
}
.navbar-form:after {
clear: both;
}
.navbar-form:before,
.navbar-form:after {
display: table;
content: "";
line-height: 0;
}
.navbar-form:after {
clear: both;
}
.navbar-form input,
.navbar-form select,
.navbar-form .radio,
.navbar-form .checkbox {
margin-top: 15px;
}
.navbar-form input,
.navbar-form select,
.navbar-form .btn {
display: inline-block;
margin-bottom: 0;
}
.navbar-form input[type="image"],
.navbar-form input[type="checkbox"],
.navbar-form input[type="radio"] {
margin-top: 3px;
}
.navbar-form .input-append,
.navbar-form .input-prepend {
margin-top: 6px;
white-space: nowrap;
}
.navbar-form .input-append input,
.navbar-form .input-prepend input {
margin-top: 0;
}
.navbar-static-top {
position: static;
width: 100%;
margin-bottom: 0;
}
.navbar-static-top .navbar-inner {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
margin-bottom: 0;
}
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner,
.navbar-static-top .navbar-inner {
border: 0;
}
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner {
padding-left: 0;
padding-right: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 1200px;
}
.navbar-fixed-top {
top: 0;
}
.navbar-fixed-top .navbar-inner,
.navbar-static-top .navbar-inner {
/* -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1);
box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1); */
}
.navbar-fixed-bottom {
bottom: 0;
}
.navbar-fixed-bottom .navbar-inner {
/* -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1);
box-shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1); */
}
.navbar .nav {
position: relative;
right: 0;
display: block;
float: right;
margin: 0;
}
.navbar .nav.pull-right {
float: right;
}
.navbar .nav > li {
float: left;
margin-top: 10px;
}
.navbar .nav > li > a {
float: none;
vertical-align: middle;
padding: 20px 10px 20px;
color: #555555;
font-family: 'Lora', serif;
text-transform: uppercase;
text-decoration: none;
text-shadow: 0 1px 0 #ffffff;
}
.navbar .nav > li > a:focus,
.navbar .nav > li > a:hover {
background-color: #transparent;
color: #7095eb;
text-decoration: none;
}
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
color: #ed2b28;
text-decoration: none;
background-color: #transparent;
-webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
-moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
}

Third section from the top has the overflow hidden, should be visible.
.navbar {
overflow: visible;
margin-bottom: 0px;
color: transparent;
*position: relative;
*z-index: 2;
}

Related

at-rul or selector expected css(css-ruleorselectorexpected)

I'm confused. Was trying to get rid of render blocking css on my website.
So I followed an instruction of aoxao.co.
I use Wordpress and Autoptimize for minifying all my .css file to one file.
Now I generated a critical path file for my homepage on jonassebastianohlsson.com.
Unfortunately I get the error mentioned in the title.
You can find all of the code down below and the line which produces the error in between (the line with the charset rule.
Have I missed anything?
BTW: I already tried the solution of another post which said I should untick the "Validate: Styles" - option in Visual Studio Code.
Thanks for your help!
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
article,header,nav,section {
display: block
}
a {
background-color: transparent
}
strong {
font-weight: bold
}
img {
border: 0
}
button {
color: inherit;
font: inherit;
margin: 0
}
button {
overflow: visible
}
button {
text-transform: none
}
button {
-webkit-appearance: button
}
button::-moz-focus-inner {
border: 0;
padding: 0
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
*:before,*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
html {
font-size: 10px
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff
}
button {
font-family: inherit;
font-size: inherit;
line-height: inherit
}
a {
color: #337ab7;
text-decoration: none
}
img {
vertical-align: middle
}
.img-responsive {
display: block;
max-width: 100%;
height: auto
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0
}
h2,h4 {
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit
}
h2 {
margin-top: 20px;
margin-bottom: 10px
}
h4 {
margin-top: 10px;
margin-bottom: 10px
}
h2 {
font-size: 30px
}
h4 {
font-size: 18px
}
p {
margin: 0 0 10px
}
ul {
margin-top: 0;
margin-bottom: 10px
}
ul ul {
margin-bottom: 0
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px
}
#media (min-width:768px) {
.container {
width: 750px
}
}
#media (min-width:992px) {
.container {
width: 970px
}
}
#media (min-width:1200px) {
.container {
width: 1170px
}
}
.row {
margin-left: -15px;
margin-right: -15px
}
.collapse {
display: none
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid \9;
border-right: 4px solid transparent;
border-left: 4px solid transparent
}
.dropdown {
position: relative
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
text-align: left;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-webkit-background-clip: padding-box;
background-clip: padding-box
}
.dropdown-menu>li>a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333;
white-space: nowrap
}
.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
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent
}
#media (min-width:769px) {
.navbar {
border-radius: 4px
}
}
#media (min-width:769px) {
.navbar-header {
float: left
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch
}
#media (min-width:769px) {
.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-fixed-top .navbar-collapse {
padding-left: 0;
padding-right: 0
}
}
.navbar-fixed-top .navbar-collapse {
max-height: 340px
}
#media (max-device-width:480px) and (orientation:landscape) {
.navbar-fixed-top .navbar-collapse {
max-height: 200px
}
}
.container>.navbar-header,.container>.navbar-collapse {
margin-right: -15px;
margin-left: -15px
}
#media (min-width:769px) {
.container>.navbar-header,.container>.navbar-collapse {
margin-right: 0;
margin-left: 0
}
}
.navbar-fixed-top {
position: fixed;
right: 0;
left: 0;
z-index: 1030
}
#media (min-width:769px) {
.navbar-fixed-top {
border-radius: 0
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px
}
.navbar-brand {
float: left;
padding: 15px 15px;
font-size: 18px;
line-height: 20px;
height: 50px
}
.navbar-brand>img {
display: block
}
#media (min-width:769px) {
.navbar>.container .navbar-brand {
margin-left: -15px
}
}
.navbar-toggle {
position: relative;
margin-right: 5px;
padding: 9px 10px;
margin-top: 8px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
-ms-border-radius: 1px;
-o-border-radius: 1px
}
.navbar-toggle .icon-bar+.icon-bar {
margin-top: 4px
}
#media (min-width:769px) {
.navbar-toggle {
display: none
}
}
.navbar-nav {
margin: 7.5px -15px
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px
}
#media (min-width:769px) {
.navbar-nav {
float: left;
margin: 0
}
.navbar-nav>li {
float: left
}
.navbar-nav>li>a {
padding-top: 15px;
padding-bottom: 15px
}
}
.navbar-nav>li>.dropdown-menu {
margin-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0
}
.navbar-default {
background-color: #f8f8f8;
border-color: #e7e7e7
}
.navbar-default .navbar-brand {
color: #777
}
.navbar-default .navbar-nav>li>a {
color: #777
}
.navbar-default .navbar-toggle {
border-color: #ddd
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #888
}
.navbar-default .navbar-collapse {
border-color: #e7e7e7
}
.container:before,.container:after,.row:before,.row:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after {
content: " ";
display: table
}
.container:after,.row:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after {
clear: both
}
#-ms-viewport {
width: device-width
}
h2 {
font-size: 37px
}
h4 {
font-size: 27px
}
#media (max-width:768px) {
h2 {
font-size: 28px
}
h4 {
font-size: 22px
}
}
body {
font-size: 14px
}
.navbar a {
font-size: 12px
}
#charset "UTF-8".navbar button.navbar-toggle { -webkit-box-shadow:
none; -moz-box-shadow: none; box-shadow: none }
.navbar .navbar-brand,.hestia-about p {
font-size: 18px
}
body {
font-size: 14px
}
.navbar,.navbar a {
font-size: 12px
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 300;
line-height: 1.618
}
ul {
line-height: 1.618
}
h2,h4 {
font-weight: 500;
line-height: 1.618
}
button {
font-size: 12px;
font-weight: 400
}
button {
font-size: inherit;
line-height: inherit
}
.navbar .navbar-brand {
line-height: 30px
}
.navbar .navbar-nav>li>a {
font-weight: 400
}
.navbar .dropdown-menu li>a {
font-size: 13px
}
.hestia-about {
font-weight: 300
}
.hestia-about h2,.hestia-about h4 {
font-weight: 700
}
#media (max-width:768px) {
.navbar .navbar-nav li .caret {
font-size: 20px
}
.navbar .navbar-nav .dropdown .dropdown-menu li a {
line-height: 20px
}
}
body {
direction: ltr;
color: #3c4858;
font-family: "Roboto", "Helvetica", "Arial", sans-serif
}
h2,h4 {
font-family: "Roboto", "Helvetica", "Arial", sans-serif
}
a {
color: #9c27b0
}
.container {
max-width: 100%
}
#media (min-width:749px) {
.container {
max-width: 748px
}
}
#media (min-width:768px) {
.container {
max-width: 750px
}
}
#media (min-width:992px) {
.container {
max-width: 970px
}
}
#media (min-width:1200px) {
.container {
max-width: 2000px
}
}
body {
direction: ltr;
background-color: #e5e5e5;
overflow-x: hidden
}
img,button {
max-width: 100%
}
img {
height: auto
}
ul {
margin-bottom: 30px
}
.container {
max-width: 100%
}
:focus,:active,::-moz-focus-inner {
outline: 0!important
}
button {
border: 0
}
button {
font-family: inherit;
padding: 7px
}
button {
position: relative;
margin: 10px 1px;
padding: 12px 30px;
border: none;
border-radius: 3px;
white-space: normal;
letter-spacing: 0;
text-transform: uppercase
}
button {
-webkit-box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12);
-moz-box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12);
box-shadow: 0 2px 2px 0 rgba(153, 153, 153, .14), 0 3px 1px -2px rgba(153, 153, 153, .2), 0 1px 5px 0 rgba(153, 153, 153, .12)
}
button {
-webkit-box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12);
-moz-box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12);
box-shadow: 0 2px 2px 0 rgba(156, 39, 176, .14), 0 3px 1px -2px rgba(156, 39, 176, .2), 0 1px 5px 0 rgba(156, 39, 176, .12)
}
button {
color: #fff;
background-color: #9c27b0
}
.navbar button.navbar-toggle {
color: #555
}
.navbar {
background-color: #fff;
color: #555;
border-radius: 0;
position: fixed;
border: none;
padding: 0;
-webkit-box-shadow: 0 1px 10px -6px rgba(0, 0, 0, .42), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 4px 5px -2px rgba(0, 0, 0, .1);
box-shadow: 0 1px 10px -6px rgba(0, 0, 0, .42), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 4px 5px -2px rgba(0, 0, 0, .1)
}
.navbar .navbar-collapse {
border: none
}
.navbar .title-logo-wrapper {
max-width: 250px;
display: flex;
align-items: center
}
.navbar>.container {
display: flex;
padding: 10px 15px;
vertical-align: middle;
align-items: center
}
.navbar.hestia_left .navbar-collapse {
margin-left: auto
}
.navbar.hestia_left>.container {
flex-direction: row
}
.navbar.hestia_left .navbar-nav {
display: flex;
flex-wrap: wrap;
justify-content: flex-end
}
.navbar .navbar-header .navbar-brand {
padding: 0 15px;
position: relative;
color: inherit;
height: auto
}
.navbar .navbar-header .navbar-brand img {
width: auto;
max-height: 50px
}
.navbar-toggle-wrapper {
margin-left: auto;
display: flex;
align-items: center;
flex-direction: row
}
.navbar .navbar-toggle {
float: none;
border: 0;
margin-right: 0
}
.navbar .navbar-toggle .icon-bar {
border: 1px solid;
position: relative
}
.navbar .navbar-nav>li {
margin: 0
}
.navbar .navbar-nav>li>a {
text-transform: uppercase
}
.navbar .navbar-nav>li a {
padding-top: 15px;
padding-bottom: 15px;
border-radius: 3px;
color: inherit
}
.navbar .navbar-nav>li .dropdown-menu {
margin-top: -5px;
border: none
}
.navbar .navbar-nav>li .dropdown-menu li {
color: #333;
position: relative
}
.navbar .navbar-nav>li .dropdown-menu li>a {
background-color: transparent;
margin: 0 5px;
padding: 10px;
border-radius: 2px
}
.navbar .navbar-nav>li:not(.btn)>a:before {
position: absolute;
z-index: -1;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 3px;
background-color: rgba(255, 255, 255, .1);
content: "";
-webkit-transform: scaleX(0);
-ms-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: 50%;
-ms-transform-origin: 50%;
transform-origin: 50%
}
#main-navigation ul.nav>li {
opacity: 1;
visibility: visible
}
.hestia-about {
padding: 65px 0 30px
}
.hestia-about {
background-attachment: fixed;
color: #999
}
.hestia-about h2,.hestia-about h4 {
color: #3c4858;
text-decoration: none;
word-wrap: break-word;
font-family: "Roboto Slab", "Times New Roman", serif
}
.blog-post {
word-wrap: break-word
}
.main {
position: relative;
background: #fff
}
.main-raised {
margin: -60px 30px 0;
border-radius: 6px 6px 0 0;
-webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2)
}
.home .main-raised section:first-of-type {
border-radius: 6px 6px 0 0;
overflow: hidden
}
#media (max-width:1199px) {
.hestia-about .row {
padding: 0 15px
}
.main-raised {
margin: -60px 15px 0
}
}
#media (max-width:991px) {
.navbar .navbar-nav>li {
margin-right: 10px;
margin-left: 10px
}
.hestia-about .row {
padding: 0 10px
}
}
#media (min-width:992px) {
.navbar .navbar-collapse {
text-align: center
}
.navbar .navbar-nav>li {
margin: 0
}
}
#media (min-width:769px) {
.navbar.hestia_left .title-logo-wrapper {
min-width: 250px
}
.dropdown .dropdown-menu {
display: block;
visibility: hidden;
margin-top: -20px;
opacity: 0
}
}
#media (max-width:768px) {
.container .navbar-header {
width: 100%;
display: flex;
margin: 0 auto
}
.navbar>.container {
padding: 10px 15px;
align-items: center;
display: block
}
.navbar .nav.navbar-nav {
display: block
}
.navbar.navbar-fixed-top .navbar-collapse {
max-height: calc(100% - 70px);
margin-top: 70px;
overflow-y: auto;
position: fixed;
z-index: 9999;
background: #fff;
width: 100%;
left: 0;
top: 0;
margin-left: 0;
margin-right: 0;
-webkit-overflow-scrolling: auto
}
.navbar .navbar-nav {
margin: 7.5px 0
}
.navbar .navbar-nav li {
box-sizing: border-box;
float: left;
margin: 0;
padding: 0;
width: 100%;
text-align: left
}
.navbar .navbar-nav .dropdown a .caret {
border: 1px solid #555;
border-radius: 2px;
box-sizing: content-box;
color: #555;
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 900;
height: 30px;
margin-left: 0;
position: absolute;
right: 15px;
text-align: center;
top: 10px;
width: 30px;
z-index: 100
}
.navbar .navbar-nav .dropdown a .caret:before {
content: "\f107";
top: 5px;
position: relative;
display: inline-block
}
.navbar .navbar-nav .dropdown .dropdown-menu {
background: 0 0;
box-shadow: none;
position: static;
margin-top: 0;
padding: 0;
width: 100%
}
.navbar .navbar-nav .dropdown .dropdown-menu li a {
margin: 0;
padding: 15px 0 15px 30px
}
.navbar .navbar-header .navbar-brand {
padding-left: 0
}
.home .main-raised section:first-of-type {
border-radius: 0
}
.main-raised {
margin-right: 0;
margin-left: 0;
border-radius: 0
}
.hestia-about {
padding-top: 30px
}
.hestia-about h2 {
margin-top: 0
}
.home:not(.blog) .main-raised {
margin-top: 0
}
}
.elementor-page .hestia-about>.container {
width: 100%
}
.home.elementor-page .main-raised>section.hestia-about {
overflow: visible
}
.elementor-text-editor p {
font-size: inherit
}
a {
color: #002970
}
button {
background-color: #002970
}
h2,h4,.hestia-about h2,.hestia-about h4 {
font-family: Sanchez
}
body,ul {
font-family: Sanchez
}
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px
}
#font-face {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-weight: 400;
font-display: auto;
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.eot);
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.woff2) format("woff2"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.woff) format("woff"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.ttf) format("truetype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-regular-400.svg#fontawesome) format("svg")
}
#font-face {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-weight: 900;
font-display: auto;
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.eot);
src: url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.woff2) format("woff2"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.woff) format("woff"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.ttf) format("truetype"), url(//analogninja.de/wp-content/themes/hestia/assets/font-awesome/css/../webfonts/fa-solid-900.svg#fontawesome) format("svg")
}
.elementor-clearfix:after {
content: "";
display: block;
clear: both;
width: 0;
height: 0
}
.elementor {
-webkit-hyphens: manual;
-ms-hyphens: manual;
hyphens: manual
}
.elementor *,.elementor:after,.elementor:before {
-webkit-box-sizing: border-box;
box-sizing: border-box
}
.elementor a {
-webkit-box-shadow: none;
box-shadow: none;
text-decoration: none
}
.elementor img {
height: auto;
max-width: 100%;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none
}
.elementor-section {
position: relative
}
.elementor-section .elementor-container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-right: auto;
margin-left: auto;
position: relative
}
.elementor-section.elementor-section-boxed>.elementor-container {
max-width: 1140px
}
.elementor-row {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
#media (max-width:1024px) {
.elementor-row {
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
}
.elementor-column-wrap {
width: 100%;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-widget-wrap {
position: relative;
width: 100%;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-content: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start
}
.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-widget-wrap>.elementor-element {
width: 100%
}
.elementor-widget {
position: relative
}
.elementor-column {
position: relative;
min-height: 1px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {
padding: 10px
}
#media (min-width:768px) {
.elementor-column.elementor-col-100 {
width: 100%
}
}
#media (max-width:767px) {
.elementor-column {
width: 100%
}
}
.elementor-widget-heading .elementor-heading-title {
padding: 0;
margin: 0;
line-height: 1
}
.elementor-widget-heading .elementor-heading-title {
font-family: "Sanchez", Sans-serif;
font-weight: 600
}
.elementor-widget-text-editor {
font-family: "Sanchez", Sans-serif;
font-weight: 400
}
.elementor-386 .elementor-element.elementor-element-b5f43bf>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-b5f43bf {
margin-top: -40px;
margin-bottom: 0
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4.elementor-widget-heading .elementor-heading-title {
color: #0c0c0c
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4 .elementor-heading-title {
font-family: "Sanchez", Sans-serif;
font-weight: 700
}
.elementor-386 .elementor-element.elementor-element-5451f39>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-fe48f01 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-14a2f0a>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-061141d.elementor-widget-heading .elementor-heading-title {
color: #0f0f0f
}
.elementor-386 .elementor-element.elementor-element-1284051>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-7755a44 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-c88de32>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-7c59ba1.elementor-widget-heading .elementor-heading-title {
color: #0c0c0c
}
.elementor-386 .elementor-element.elementor-element-39a07a8>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-f0bdcd3 {
color: #0c0c0c;
font-size: 1.3em
}
.elementor-386 .elementor-element.elementor-element-d63182f>.elementor-container {
max-width: 900px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-col-image {
height: 230px;
border-radius: 15px;
margin: 0
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-wrapper {
padding-right: calc(15px);
padding-left: calc(15px);
padding-bottom: 30px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-container {
margin-left: calc(-15px);
margin-right: calc(-15px)
}
#media (max-width:767px) {
.elementor-386 .elementor-element.elementor-element-b5f43bf {
margin-top: -15px;
margin-bottom: 0
}
.elementor-386 .elementor-element.elementor-element-6dfb8a4>.elementor-widget-container {
margin: 10px 0 0
}
.elementor-386 .elementor-element.elementor-element-fe48f01 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-7755a44 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-f0bdcd3 {
font-size: 1.1em
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-wrapper {
padding-right: calc(0px);
padding-left: calc(0px);
padding-bottom: 10px
}
.elementor-386 .elementor-element.elementor-element-953030e .obfx-grid-container {
margin-left: calc(0px);
margin-right: calc(0px)
}
}
body.custom-background {
background-color: #686868
}
.navbar .navbar-header .navbar-brand img {
max-height: 60px
}
.navbar .navbar-nav>li>a {
font-size: 14px!important
}
a {
color: #1e8dfc
}
.lazyload {
opacity: 0
}
.obfx-grid:after {
display: block;
visibility: hidden;
clear: both;
height: 0;
font-size: 0;
content: " "
}
.obfx-grid-container {
display: -webkit-flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-right: -15px;
margin-left: -15px;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
.obfx-grid-wrapper {
padding-right: 15px;
padding-left: 15px
}
.obfx-grid .obfx-grid-col-image {
display: block;
overflow: hidden;
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: 0 0 10px;
box-shadow: 0 3px 10px 0 rgba(181, 181, 181, 1)
}
.obfx-grid .obfx-grid-col-image {
display: inline-block;
width: 100%;
height: 200px
}
.obfx-grid .obfx-grid-col-image img {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
max-width: none;
height: auto;
max-height: none;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%)
}
.obfx-grid-desktop-1 .obfx-grid-wrapper {
width: 100%
}

CSS: making the select field width and height same as all other input fields?

I grabbed some CSS from the bootstrap css file to use in my code.
Everything works fine but the only issue that I have is the fact that the <select></select> field width and height is not same as other inputs on my page.
.newins {
background-color: #d9dada !important;
width: 88% !important;
padding: 12px;
font-family: 'VAG Rundschrift D';
border: none;
border-radius: 5px;
margin-top: 7px;
font-size: 1.1em;
color: #747272;
font-size: 20px !important;
}
.form-control {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s
}
.form-control:focus {
/*border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)*/
}
.form-control::-moz-placeholder {
color: #999;
opacity: 1
}
.form-control:-ms-input-placeholder {
color: #999
}
.form-control::-webkit-input-placeholder {
color: #999
}
.form-control::-ms-expand {
background-color: transparent;
border: 0
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
background-color: #eee;
opacity: 1
}
.form-control[disabled],
fieldset[disabled] .form-control {
cursor: not-allowed
}
textarea.form-control {
height: auto
}
input[type=search] {
-webkit-appearance: none
}
#media screen and (-webkit-min-device-pixel-ratio:0) {
input[type=date].form-control,
input[type=time].form-control,
input[type=datetime-local].form-control,
input[type=month].form-control {
line-height: 34px
}
.input-group-sm input[type=date],
.input-group-sm input[type=time],
.input-group-sm input[type=datetime-local],
.input-group-sm input[type=month],
input[type=date].input-sm,
input[type=time].input-sm,
input[type=datetime-local].input-sm,
input[type=month].input-sm {
line-height: 30px
}
.input-group-lg input[type=date],
.input-group-lg input[type=time],
.input-group-lg input[type=datetime-local],
.input-group-lg input[type=month],
input[type=date].input-lg,
input[type=time].input-lg,
input[type=datetime-local].input-lg,
input[type=month].input-lg {
line-height: 46px
}
}
.form-group {
margin-bottom: 15px
}
.checkbox,
.radio {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px
}
.checkbox label,
.radio label {
min-height: 20px;
padding-left: 20px;
margin-bottom: 0;
font-weight: 400;
cursor: pointer
}
.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio] {
position: absolute;
margin-top: 4px\9;
margin-left: -20px
}
.checkbox+.checkbox,
.radio+.radio {
margin-top: -5px
}
.checkbox-inline,
.radio-inline {
position: relative;
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
font-weight: 400;
vertical-align: middle;
cursor: pointer
}
.checkbox-inline+.checkbox-inline,
.radio-inline+.radio-inline {
margin-top: 0;
margin-left: 10px
}
fieldset[disabled] input[type=checkbox],
fieldset[disabled] input[type=radio],
input[type=checkbox].disabled,
input[type=checkbox][disabled],
input[type=radio].disabled,
input[type=radio][disabled] {
cursor: not-allowed
}
.checkbox-inline.disabled,
.radio-inline.disabled,
fieldset[disabled] .checkbox-inline,
fieldset[disabled] .radio-inline {
cursor: not-allowed
}
.checkbox.disabled label,
.radio.disabled label,
fieldset[disabled] .checkbox label,
fieldset[disabled] .radio label {
cursor: not-allowed
}
.form-control-static {
min-height: 34px;
padding-top: 7px;
padding-bottom: 7px;
margin-bottom: 0
}
.form-control-static.input-lg,
.form-control-static.input-sm {
padding-right: 0;
padding-left: 0
}
.input-sm {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px
}
select.input-sm {
height: 30px;
line-height: 30px
}
select[multiple].input-sm,
textarea.input-sm {
height: auto
}
.form-group-sm .form-control {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px
}
.form-group-sm select.form-control {
height: 30px;
line-height: 30px
}
.form-group-sm select[multiple].form-control,
.form-group-sm textarea.form-control {
height: auto
}
.form-group-sm .form-control-static {
height: 30px;
min-height: 32px;
padding: 6px 10px;
font-size: 12px;
line-height: 1.5
}
.input-lg {
height: 46px;
padding: 10px 16px;
font-size: 18px;
line-height: 1.3333333;
border-radius: 6px
}
select.input-lg {
height: 46px;
line-height: 46px
}
select[multiple].input-lg,
textarea.input-lg {
height: auto
}
.form-group-lg .form-control {
height: 46px;
padding: 10px 16px;
font-size: 18px;
line-height: 1.3333333;
border-radius: 6px
}
.form-group-lg select.form-control {
height: 46px;
line-height: 46px
}
.form-group-lg select[multiple].form-control,
.form-group-lg textarea.form-control {
height: auto
}
.form-group-lg .form-control-static {
height: 46px;
min-height: 38px;
padding: 11px 16px;
font-size: 18px;
line-height: 1.3333333
}
.has-feedback {
position: relative
}
.has-feedback .form-control {
padding-right: 42.5px
}
.form-control-feedback {
position: absolute;
top: 0;
right: 0;
z-index: 2;
display: block;
width: 34px;
height: 34px;
line-height: 34px;
text-align: center;
pointer-events: none
}
.form-group-lg .form-control+.form-control-feedback,
.input-group-lg+.form-control-feedback,
.input-lg+.form-control-feedback {
width: 46px;
height: 46px;
line-height: 46px
}
.form-group-sm .form-control+.form-control-feedback,
.input-group-sm+.form-control-feedback,
.input-sm+.form-control-feedback {
width: 30px;
height: 30px;
line-height: 30px
}
.has-success .checkbox,
.has-success .checkbox-inline,
.has-success .control-label,
.has-success .help-block,
.has-success .radio,
.has-success .radio-inline,
.has-success.checkbox label,
.has-success.checkbox-inline label,
.has-success.radio label,
.has-success.radio-inline label {
color: #3c763d
}
.has-success .form-control {
border-color: #3c763d;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075)
}
.has-success .form-control:focus {
border-color: #2b542c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168
}
.has-success .input-group-addon {
color: #3c763d;
background-color: #dff0d8;
border-color: #3c763d
}
.has-success .form-control-feedback {
color: #3c763d
}
.has-warning .checkbox,
.has-warning .checkbox-inline,
.has-warning .control-label,
.has-warning .help-block,
.has-warning .radio,
.has-warning .radio-inline,
.has-warning.checkbox label,
.has-warning.checkbox-inline label,
.has-warning.radio label,
.has-warning.radio-inline label {
color: #8a6d3b
}
.has-warning .form-control {
border-color: #8a6d3b;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075)
}
.has-warning .form-control:focus {
border-color: #66512c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b
}
.has-warning .input-group-addon {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #8a6d3b
}
.has-warning .form-control-feedback {
color: #8a6d3b
}
.has-error .checkbox,
.has-error .checkbox-inline,
.has-error .control-label,
.has-error .help-block,
.has-error .radio,
.has-error .radio-inline,
.has-error.checkbox label,
.has-error.checkbox-inline label,
.has-error.radio label,
.has-error.radio-inline label {
color: #a94442
}
.has-error .form-control {
border-color: #a94442;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075)
}
.has-error .form-control:focus {
border-color: #843534;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483
}
.has-error .input-group-addon {
color: #a94442;
background-color: #f2dede;
border-color: #a94442
}
.has-error .form-control-feedback {
color: #a94442
}
.has-feedback label~.form-control-feedback {
top: 25px
}
.has-feedback label.sr-only~.form-control-feedback {
top: 0
}
.help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #737373
}
#media (min-width:768px) {
.form-inline .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle
}
.form-inline .form-control-static {
display: inline-block
}
.form-inline .input-group {
display: inline-table;
vertical-align: middle
}
.form-inline .input-group .form-control,
.form-inline .input-group .input-group-addon,
.form-inline .input-group .input-group-btn {
width: auto
}
.form-inline .input-group>.form-control {
width: 100%
}
.form-inline .control-label {
margin-bottom: 0;
vertical-align: middle
}
.form-inline .checkbox,
.form-inline .radio {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle
}
.form-inline .checkbox label,
.form-inline .radio label {
padding-left: 0
}
.form-inline .checkbox input[type=checkbox],
.form-inline .radio input[type=radio] {
position: relative;
margin-left: 0
}
.form-inline .has-feedback .form-control-feedback {
top: 0
}
}
.form-horizontal .checkbox,
.form-horizontal .checkbox-inline,
.form-horizontal .radio,
.form-horizontal .radio-inline {
padding-top: 7px;
margin-top: 0;
margin-bottom: 0
}
.form-horizontal .checkbox,
.form-horizontal .radio {
min-height: 27px
}
.form-horizontal .form-group {
margin-right: -15px;
margin-left: -15px
}
#media (min-width:768px) {
.form-horizontal .control-label {
padding-top: 7px;
margin-bottom: 0;
text-align: right
}
}
.form-horizontal .has-feedback .form-control-feedback {
right: 15px
}
<div class="form-group">
<input type="text" class="form-control newins" id="coll" placeholder="Collection">
</div>
<div class="form-group">
<select id="len" class="form-control newins">
<option value="">Length</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
This is my code:
.newins{
background-color:#d9dada !important;
width:88% !important;
padding:12px;
font-family: 'VAG Rundschrift D';
border:none;
border-radius:5px;
margin-top:7px;
font-size:1.1em;
color:#747272;
font-size:20px !important;
}
Could someone please advise on this?
problem is with padding when you are removing the padding width of inputs are same.Otherwise you can use box-sizing.When use this padding will be subtracted from the width.
input{
height:44px;
}
select{
height:34px;
}
.newins{
background-color:#d9dada !important;
width:88% ;
padding:12px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: 'VAG Rundschrift D';
border:none;
border-radius:5px;
margin-top:7px;
font-size:1.1em;
color:#747272;
font-size:20px !important;
}
.form-control{display:block;width:100%;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{/*border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)*/}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}#media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}#media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}#media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}
<div class="form-group">
<input type="text" class="form-control newins" id="coll" placeholder="Collection">
</div>
<div class="form-group">
<select id="len" class="form-control newins" >
<option value="">Length</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
For having the same height just set box-sizing: content-box; in your select tag style. In order to have the same width you should use same size columns inside dives with class="row".

Creating space between Side Buttons

I'm trying to create a space down the left hand side of my page for social media buttons, my problem is the buttons will not spread apart to where there is a large enough gap between buttons.
enter image description here
body {
background: darkgrey;
background-image:url('../https://www.dropbox.com/home?preview=city.jpg');
font-family: arial;
}
#wrapper {
width: 800px;
margin: 100px auto 0 auto;
padding-bottom: 20px;
}
#header {
width: 800;
height: auto;
margin: 0;
background: transparent;
}
.logo{
text-align: center;
}
#tabs{
overflow: hidden;
width: 100%;
margin: 0;
padding: 0;
list-style: none;
}
#tabs li{
float: left;
margin: 0 .5em 0 0;
}
#tabs a{
position: relative;
background: #ddd;
background-image: linear-gradient(to bottom, #ccc, #ddd);
padding: .7em 3.5em;
float: left;
text-decoration: none;
color: #444;
text-shadow: 0 1px 0 rgba(255,255,255,.8);
border-radius: 5px 0 0 0;
box-shadow: 0 2px 2px rgba(0,0,0,.4);
}
#tabs a:hover,
#tabs a:hover::after,
#tabs a:focus,
#tabs a:focus::after{
background: #fff;
}
#tabs a:focus{
outline: 0;
}
#tabs a::after{
content:'';
position:absolute;
z-index: 1;
top: 0;
right: -.5em;
bottom: 0;
width: 1em;
background: #ddd;
background-image: linear-gradient(to bottom, #ccc, #ddd);
box-shadow: 2px 2px 2px rgba(0,0,0,.4);
transform: skew(10deg);
border-radius: 0 5px 0 0;
}
#tabs #current a,
#tabs #current a::after{
background: #fff;
z-index: 3;
}
#content
{
background: #fff;
padding: 2em;
height: 520px;
position: relative;
z-index: 2;
border-radius: 0 5px 5px 5px;
box-shadow: 0 -2px 3px -2px rgba(0, 0, 0, .5);
}
p {text-align:left;
line-height:120%;
margin-right: 2cm;
letter-spacing: 0px;
}
#icons {
position: absolute;
top: 86px;
left: -90px;
z-index: 3;
}
table {border: solid darkgrey thin;
}
}
footer {
display: inline-block;
width:800px;
text-align: left;
margin-top: 250px;
}
footer ul {list-style-type: none;
text-align: center;
float: left;
}
footer li {display:inline;
margin-left: 20px;
}
footer a:link{
text-decoration: none;
}
footer p {
float:right;
}
.menu {
word-spacing: 10px;
}

Decrease Bootstrap Navigation Breakpoint

I'm using the latest version of Bootstrap and the Navbar collapses into responsive view at 1320px.
How can I adjust this so that the navbar only collapses into responsive view below 1280px? All the questions I've seen on SO have been to increase the breakpoint, where I would like to reduce it.
You can write a specific media query for that,
#media (max-width: 768px) {
.collapse {
display: none !important;
}
}
I will update this answer for you if you post your code.
Thanks for the suggestion, the below code is what was needed in order to decrease the break point and keep the desktop version of the navigation bar.
#media only screen
and (min-width: 1170px) {
.navbar-toggle {
display: none;
}
.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-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
padding-right: 0;
padding-left: 0;
}
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li,
.navbar-header {
float: left;
}
#navbar-settings {
float: right;
}
.navbar-nav > li > a {
padding: 12px 36px;
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, .15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.navbar-nav .open .dropdown-menu {
position: absolute;
float: none;
width: auto;
margin-top: 0;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, .15);
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
color: #626366 !important;
text-decoration: none;
background-color: #f5f5f5;
}
}

css deformed submenu second option and z-index

I'm creating a submenu for my website but it needs some little fixes.
First, I can't make the z-index work, is displayed under the content div, in the live example I removed all z-index, and righ now, I really have no idea how this works :(
Second, in the submenu from second option, the box is more large than the first one. I'm trying to fix it but I don't see where the problem is.
/* Sub-menu */
#main-nav ul {
list-style: none;
margin: 0;
padding: 0;
display: none;
position: absolute;
/* rounded corner */
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
}
#main-nav ul li {
float: none;
display: block;
/* box shadow */
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 1px rgba(0, 0, 0, .4);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 1px rgba(0, 0, 0, .4);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 1px rgba(0, 0, 0, .4);
/* rounded corner */
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
}
#main-nav ul li:last-child {
box-shadow: none;
}
#main-nav ul a {
color: #fff;
background: #474747;
display: block;
white-space: nowrap;
}
#main-nav ul a:hover {
/* gradient */
background: #6a6a6a url(images/nav-bar-bg.png) repeat-x;
background: -webkit-gradient(linear, left top, left bottom, from(#b9b9b9), to(#6a6a6a));
background: -moz-linear-gradient(top, #b9b9b9, #6a6a6a);
background: linear-gradient(-90deg, #b9b9b9, #6a6a6a);
background-image: linear-gradient(-90deg, #cdcdcd, #797979);
}
#main-nav ul li:first-child a {
/* rounded corner */
-webkit-border-radius: 8px 8px 0 0;
-moz-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
}
#main-nav ul li:last-child a {
/* rounded corner */
-webkit-border-radius: 0 0 8px 8px;
-moz-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
}
#main-nav ul li:first-child a:after {
content:'';
position: absolute;
left: 30px;
top: -8px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #444;
}
#menu ul li:first-child a:hover:after {
border-bottom-color: #fafafa;
}
#main-nav:after {
visibility: hidden;
display: block;
font-size: 0;
content:" ";
clear: both;
height: 0;
}
Here's a live example: http://jsfiddle.net/y59kjsLn/1/
Thanks in advance!
Edit: add more css
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
.clearfix { display: block; zoom: 1; }
Chan this cause the z-index problem?
Edit2: Add the html code
Hmmm maybe has something to do with...
<div id="content">
<article class="post clearfix">
<?php
if(array_key_exists($matches[1], $includes)) {
$content = include($includes[$matches[1]]);
} else header("Location: /home");
?>
</article>
</div>
This is just behind the menu.
#content CSS code:
#content {
opacity: 0.8;
background: #fff;
margin: 30px 0 30px;
padding: 20px 35px;
width: 600px;
float: left;
/* rounded corner */
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
/* box shadow */
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.4);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,.4);
box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
#content .error {
color: red;
text-align: center;
}
#content .note {
font-size: 80%;
text-align: center;
}
#content p {
margin-top: 30px;
}
h2.post-title {
margin-top: 15px;
background: #888;
border-radius: 5px;
padding: 0px 5px ;
border-top: 1px solid #889;
border-bottom: 1px solid #889;
text-align: center;
}
h2.post-title a {
color: #FFFFFF;
font-size: 0.9em;
text-shadow: 1px 1px 2px #333333;
}
.post {
margin-bottom: 20px;
}
.post-title {
margin: 0 0 5px;
padding: 0;
font: bold 26px/120% Arial, Helvetica, sans-serif;
}
.post-title a {
text-decoration: none;
color: #000;
}
.post-meta {
margin: 0 0 10px;
font-size: 90%;
}
figure.post-imagen img {
float: left;
margin: 5px;
max-width: 260px;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
.clearfix { display: block; zoom: 1; }
Js Fiddle
removed the margin which was affecting the sub menu
#main-nav li:first-child {
margin-left: 10px;
}
edit
Remove and Add
#content
opacity: 0.8; /* removed */
background: rgba(255, 255, 255, 0.55); /* added */
}

Resources