Related
This plain code(btw, I took it from another stackoverflow poste) works as the red div#wrapper reaches from top to bottom...
<html>
<head>
<style media="screen">
#wrapper {
height:100%;
width:300px;
background-color:red;
}
#first {
background-color:#F5DEB3;
height: 200px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="first"></div>
</div>
</body>
</html>
but when I integrate this to a wordpress+bootstrap+timber theme it's not working... even with a html,body{height: 100% } written in style.css...
I'm not sure if this is bootstrap or wordpress related problem...
hmtl, body{
height: 100%!important;
}
#wrapper {
height:100%!important;
background-color:red;
}
.navbar-brand-image{
margin: 0 auto;
}
#media (max-width: 1000px) {
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
float: none;
text-align: center
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin: 7.5px -15px;
width: 100%;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.navbar-text {
float: none;
margin: 15px 0;
}
/* since 3.1.0 */
.navbar-collapse.collapse.in {
display: block!important;
}
.collapsing {
overflow: hidden!important;
}
}
.navbar{
margin-bottom: 0px
}
.navbar .navbar-nav a{
color: #fff;
font-weight: bold
}
.navbar .navbar-nav a:hover{
background-color: rgba(0, 0, 0, 0.2);
}
.navbar .navbar-nav {
display: inline-block;
float: none;
}
.navbar .navbar-collapse {
text-align: center;
}
Without seeing the rest of the CSS in the page it's not possible to pinpoint the problem. You can however add an !important to the height element to ignore any CSS inheritance.
#wrapper {
height:100% !important;
width:300px;
background-color:red;
}
When you use these libraries there are big chances of them override in your code.
To check if this is the case place !important at the end of your css properties.
Example:
#wrapper {
height:100% !important;
width:300px !important;
background-color:red !important;
}
I recently wanted to add some media query lines to my website and it was all perfect, until I added a mobile navigation (dropdown menu). After that, my marquee somehow got behind the header (navigation) and after that, I couldn't figure out what's wrong.
I don't want to move it down with padding, but rather figure out why that's, because before I added a mobile navigation everything had their specific place to stand and not one thing overlapping another thing.
http://i.imgur.com/ciqMkpB.png
Here is my html:
<body>
<div id="container">
<header>
<div id="nav">
<nav class="nav-collapse">
<ul>
<li><img alt="icon" src="res/img/logo2.png"></li>
<li><a rel="alternate" href="#" class="current" class="nav-collapse">Home</a></li>
<li>Members</li>
<li>Exams</li>
<li>Timetable </li>
<li>About</li>
<li><a class="fck" href="password.html">Private Site</a</li>
<li id="title">Class Site</li>
</ul>
</nav>
</div>
</header>
<div id="content">
<div id="title">
<div class="marquee">
<h3>Welcoke...</h3>
</div>
</div>
<div id="article" text-align="center">Website was made by ŽP, JM and TM!
</div>
</div>
Here is my main CSS Code:
body {
margin:0px !important;
padding:0px;
bottom:0px;
background:#3EA6FA url('../img/11.png') no-repeat center center fixed;
}
#media screen and (max-width: 480px) {
body {
background-size: 100%;
background-position:0% 58%;
}
}
#media screen and (max-width: 900px) {
body {
background-size: 100%;
}
}
body:after {
opacity:4;
}
hr {
border:2px solid #DED5CA;
}
a {
color:white;
cursor:pointer;
text-decoration:none;
}
#bg {
display:block;
position:relative;
}
#bg:before {
content:"";
position:absolute;
z-index:-1;
opacity:0.5;
top:0;
left:0;
bottom:0;
right:0;
}
#nav {
font-family:"Lobster";
font-size:22px;
}
#nav #title {
color:white;
font-weight:bold;
margin-top:15px ;
margin-right:20px;
float:right;
font-size:26px;
}
#nav a {
float:left;
}
#nav img {
float:left;
height:48px;
margin-top:5px;
margin-left:10px;
margin-right:10px;
}
#nav ul {
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
background-color:#454443;
border-bottom:3px solid #757575;
}
#nav li a {
display:block;
color:white;
text-align:center;
padding:14px 16px;
text-decoration:none;
border-bottom:3px solid #454443;
}
#nav li a:hover {
animation-name:navlink;
animation-duration:0.35s;
background:#0276F2;
border-bottom:3px solid #325AFA;
}
#nav li a.current {
border-bottom:3px solid #325AFA;
}
#keyframes navlink {
from {
background-color:#3D362B;
}
to {
background-color:#0276F2;
}
}
#container {
font-family:"Oswald", "Bree Serif";
margin:0px;
}
#content {
margin:2%;
bottom:0px;
position:relative;
font-size:16px;
border:2px solid white;
background:rgba(255, 255, 255, 0.3);
text-align:center;
}
#content #title {
margin-left:2% !important;
margin-right:2% !important;
color:black;
font-family:"Lobster";
font-size:32px;
text-align:center;
border-bottom:2px dashed white;
}
and my new mobile navigation:
body, div,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre, dl, dt, dd, ol, ul, li, hr,
fieldset, form, label, legend, th, td,
article, aside, figure, footer, header, hgroup, menu, nav, section,
summary, hgroup {
margin: 0;
padding: 0;
border: 0;
}
a:active,
a:hover {
outline: 0;
}
#-webkit-viewport { width: device-width; }
#-moz-viewport { width: device-width; }
#-ms-viewport { width: device-width; }
#-o-viewport { width: device-width; }
#viewport { width: device-width; }
/* ------------------------------------------
RESPONSIVE NAV STYLES
--------------------------------------------- */
.nav-collapse ul {
margin: 0;
padding: 0;
width: 100%;
display: block;
list-style: none;
}
.nav-collapse li {
width: 100%;
display: block;
}
.js .nav-collapse {
clip: rect(0 0 0 0);
max-height: 0;
position: absolute;
display: block;
overflow: hidden;
zoom: 1;
}
.nav-collapse.opened {
max-height: 9999px;
}
.disable-pointer-events {
pointer-events: none !important;
}
.nav-toggle {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
#media screen and (min-width: 40em) {
.js .nav-collapse {
position: relative;
}
.js .nav-collapse.closed {
max-height: none;
}
.nav-toggle {
display: none;
}
}
/* ------------------------------------------
FIXED HEADER
--------------------------------------------- */
/* ------------------------------------------
MASK
--------------------------------------------- */
header {
background: #454443;
position:absolute;
z-index: 3;
width: 100%;
left: 0;
top: 0;
}
.mask {
-webkit-transition: opacity 300ms;
-moz-transition: opacity 300ms;
transition: opacity 300ms;
background: rgba(0,0,0, .5);
visibility: hidden;
position: fixed;
opacity: 0;
z-index: 2;
bottom: 0;
right: 0;
left: 0;
top: 0;
}
.android .mask {
-webkit-transition: none;
transition: none;
}
.js-nav-active .mask {
visibility: visible;
opacity: 1;
}
#media screen and (min-width: 40em) {
.mask {
display: none !important;
opacity: 0 !important;
}
}
/* ------------------------------------------
NAVIGATION STYLES
--------------------------------------------- */
.nav-collapse,
.nav-collapse ul {
list-style: none;
width: 100%;
float: left;
}
#media screen and (max-width: 480px) {
.nav-collapse {
float: left;
width: auto;
}
}
.nav-collapse li {
float: left;
width: 100%;
}
#media screen and (min-width: 40em) {
.nav-collapse li {
width: auto;
}
}
.nav-collapse a {
-webkit-tap-highlight-color: rgba(0,0,0,0);
border-top: 1px solid white;
text-decoration: none;
background: #454443;
color: #fff;
width: 100%;
float: left;
}
.nav-collapse a:active,
.nav-collapse .active a {
background: #325AFA;
}
#media screen and (min-width: 40em) {
.nav-collapse a {
text-align: center;
border-top: 0;
float: left;
margin: 0;
}
}
.nav-collapse ul ul a {
background: #ca3716;
padding-left: 2em;
}
#media screen and (min-width: 40em) {
.nav-collapse ul ul a {
display: none;
}
}
/* ------------------------------------------
NAV TOGGLE STYLES
--------------------------------------------- */
#font-face {
font-family: "responsivenav";
src:url("../icons/responsivenav.eot");
src:url("../icons/responsivenav.eot?#iefix") format("embedded-opentype"),
url("../icons/responsivenav.ttf") format("truetype"),
url("../icons/responsivenav.woff") format("woff"),
url("../icons/responsivenav.svg#responsivenav") format("svg");
font-weight: normal;
font-style: normal;
}
.nav-toggle {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none;
text-indent: -300px;
position: relative;
overflow: hidden;
width: 60px;
height: 55px;
float: right;
}
.nav-toggle:before {
color: #fff; /* Edit this to change the icon color */
font: normal 28px/55px "responsivenav"; /* Edit font-size (28px) to change the icon size */
text-transform: none;
text-align: center;
position: absolute;
content: "\2261"; /* Hamburger icon */
text-indent: 0;
speak: none;
width: 100%;
left: 0;
top: 0;
}
.nav-toggle.active:before {
font-size: 24px;
content: "\78"; /* Close icon */
}
Try fixing the navbar to the top using navbar-fixed-top and then give the body a padding-top of 50px.
If you hover over the words in the navbar you can see they do a little transition. Now, for this hover effect to happen you don't need to put the cursor directly on the word, you can put the cursor anywhere under or above the word and it will still activate the transition.
Now here's the problem, to go to a different page you have to click directly on the word. I want to be able to click on the link even if my mouse is slightly above/below the word.
Here's the JSFIDDLE link
HTML
body {
background-image:url('../images/geometry2.jpg');
}
.homeBody {
display:none;
}
header {
padding:0 !important;
margin:0 !important;
font-family:"Raleway", sans-serif !important;
}
header nav a {
color:#fff !important;
font-family:"Raleway", sans-serif !important;
}
.navbar-nav > li {
color:#fff !important;
font-family:"Raleway", sans-serif !important;
}
header nav li:hover a, header nav li.active a {
color:#ecf0f1 !important;
}
header nav li:hover, header nav li.active {
color:#ecf0f1 !important;
}
.navbar-default .navbar-toggle .icon-bar {
background-color:#fff;
}
.navbar-default .navbar-toggle {
border-color:#fff;
}
.linkContain {
position:absolute;
}
#media screen and (max-width: 767px) {
.navbar-nav > li, .menu-small header .navbar-nav > li, .touch header .navbar-nav > li {
background:#0e6957;
}
}
.title {
width:100%;
margin-top:120px;
text-align:center;
font-family:'Lato', sans-serif, serif;
font-size:50px;
color:#2d2d2d;
}
.images-3 {
margin-top:30px;
}
.incenseTypes {
width:80%;
margin:40px auto 0 auto;
}
.smolder {
width:80%;
margin:40px auto 0 auto;
}
.smolder img {
width:100%;
}
.view-button {
width:100%;
height:50px;
line-height:50px;
background:#16a085;
color:#fff;
font-size:24px;
}
.view-button:hover {
background:#0e6957;
}
.aboutSection {
width:80%;
margin:auto;
}
.infoTitle {
font-family:'Lato', sans-serif, serif;
}
.infoTitle2 {
font-size:35px;
font-family:'Lato', sans-serif, serif;
}
.infoBullets {
font-size:18px;
}
.infoIntro {
font-size:18px;
}
.infoLink {
color:#3aa5d2;
}
footer {
height:100px;
background:#148d75;
color:#fff;
font-size:23px;
}
footer a {
color:#fff;
}
footer a:hover {
text-decoration:none;
color:#4cbceb;
}
.copyrightRow {
margin-top:15px;
}
ul.social-buttons {
margin-top: -10px;
margin-bottom: 0;
}
.social-buttons {
text-align:center;
}
.fa-facebook {
width:50px;
height:50px;
display:block;
background-image:url('../images/home/icons/facebook.svg');
background-repeat:no-repeat;
transition:all 0.4s;
}
.fa-facebook:hover {
background-image:url('../images/home/icons/facebookHover.svg');
}
.fa-twitter {
width:50px;
height:50px;
display:block;
background-image:url('../images/home/icons/twitter.svg');
background-repeat:no-repeat;
transition:all 0.4s;
}
.fa-twitter:hover {
background-image:url('../images/home/icons/twitterHover.svg');
}
.topScentsTitle {
width:80%;
margin:auto;
text-align:center;
font-size:35px;
color:#2d2d2d;
}
.topScents {
width:80%;
margin:20px auto 0 auto;
}
.buyNow {
width:80%;
margin:auto;
height:40px;
line-height:40px;
font-size:25px;
color:#fff;
}
.buyNow {
width:80%;
margin:auto;
height:40px;
line-height:40px;
font-size:18px;
color:#fff;
background:#148d75;
border:none;
padding:0px !important;
transition:all 0.3s;
-ms-transition:all 0.3s
}
.buyNow:hover {
background:#0e6957;
}
.moreInfo {
width:80%;
margin:5px auto 0 -4px;
height:40px;
line-height:40px;
font-size:18px;
color:#fff;
background:#34495e;
padding:0px !important;
border:none;
transition:all 0.3s;
-ms-transition:all 0.3s
}
.moreInfo:hover {
background:#2c3e50;
}
.btn {
padding:0;
}
.navbar-default .navbar-nav>li>a {
padding:0;
}
a {
-webkit-transition: color 200ms linear;
-moz-transition: color 200ms linear;
transition: color 200ms linear;
}
body {
/*background:#bg-light;*/
background: #fff;
font-family: "Raleway", sans-serif;
font-size: 13px;
color: #999999;
outline: none;
}
body.home {
background: #fff;
}
*,
a,
button,
input,
*:focus,
a:focus,
button:focus,
input:focus {
outline: none!important;
}
.centered {
float: none;
margin: 0 auto;
}
.neuton {
font-family: "Neuton", serif;
}
.neuton_bold {
font-family: "Neuton", serif;
font-weight: 700;
}
.neuton_italic {
font-family: "Neuton", serif;
font-style: italic;
}
.rale {
font-family: "Raleway", sans-serif;
}
.rale_medium {
font-family: "Raleway", sans-serif;
font-weight: 500;
}
.rale_bold {
font-family: "Raleway", sans-serif;
font-weight: 700;
}
h1,
h2,
h3,
h4 {
font-family: "Neuton", serif;
color: #9a8e87;
}
h1 {
font-size: 48px;
line-height: 45px;
}
h2 {
font-size: 25px;
line-height: 22px;
}
a {
color: #666;
}
a:hover,
a:focus {
text-decoration: underline;
color: #333333;
}
.touch .touch-hide {
display: none;
}
.no-touch .touch-show {
display: none;
}
.touch .touch-show {
display: block;
}
.btn {
font-family: "Raleway", sans-serif;
font-weight: 500;
font-size: 13px;
text-transform: uppercase;
border-radius: 0;
-webkit-border-radius: 0;
padding: 15px 45px;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
background: #e2dbd7;
color: #fff;
}
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.open .dropdown-toggle.btn {
color: #ffffff;
background-color: #b5afac;
}
.btn-red {
color: #ffffff;
background-color: #cc3300;
}
.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red.active,
.open .dropdown-toggle.btn-red {
color: #ffffff;
background-color: #a32900;
}
.btn-red:active,
.btn-red.active,
.open .dropdown-toggle.btn-red {
background-image: none;
}
.form-group {
margin-bottom: 35px;
}
.control-label {
font-size: 16px;
color: #9a8e87;
font-family: "Raleway", sans-serif;
font-weight: normal;
text-transform: uppercase;
margin-bottom: 15px;
}
.form-control {
border-radius: 0;
-webkit-border-radius: 0;
background: none;
font-family: "Raleway", sans-serif;
color: #b7b7b7;
font-size: 14px;
box-shadow: none;
-webkit-box-shadow: none;
padding: 15px 10px;
height: 48px;
border: 1px solid #cac2b5;
}
.form-control:focus {
box-shadow: none;
border-color: #7c7c7c !important;
}
.form-control.required {
border-color: #cc3300!important;
border-left-width: 7px;
}
.control-label.required {
color: #cc3300;
}
.selectizer.required .selectizer-label {
border-color: #cc3300;
}
.right {
float: right;
}
.navbar-default {
height: 102px;
border-bottom: 1px solid #e9e7e6;
}
.navbar-nav > li {
padding: 15px;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
height: 102px;
padding-top: 40px;
}
.navbar-nav > li > a {
padding: 0;
}
header {
background: #148d75 !important;
-webkit-transition: height 200ms linear;
-moz-transition: height 200ms linear;
transition: height 200ms linear;
}
header ul {
margin: 0;
padding: 0;
}
header .navbar-collapse {
float: right;
}
header nav {
float: right;
border-right: 1px solid #E9E7E6;
/* background: #bg-light;*/
}
header nav li {
/*border-left: 1px solid rgba(229,227,225,0); border-right: 1px solid rgba(229,227,225,0);*/
/*border-bottom: 1px solid #line-light;*/
cursor: pointer;
}
header nav a {
color: #dad1cd!important;
overflow: hidden;
height: 20px;
display: inline-block;
font-size: 15px;
text-transform: uppercase;
font-weight: 600;
}
header nav a span {
position: relative;
display: inline-block;
-webkit-transition: -webkit-transform 0.3s;
-moz-transition: -moz-transform 0.3s;
transition: transform 0.3s;
}
header nav li:hover,
header nav li.active {
/*background: #nav-light-hover-bg;*/
border-left-color: #e9e7e6;
border-right-color: #e9e7e6;
/*border-bottom: 1px solid #bg-light;*/
}
header nav li:hover a,
header nav li.active a {
color: #a49993!important;
}
header nav li.active {
background: #fff;
border-left: 1px solid #e9e7e6;
border-right: 1px solid #e9e7e6;
}
header nav li:not(.active) a span::before {
position: absolute;
top: 100%;
content: attr(data-hover);
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
width: 100%;
text-align: center;
}
header nav li:not(.active):hover a span,
header nav li:not(.active) a:focus span {
-webkit-transform: translatey(-100%);
-moz-transform: translatey(-100%);
transform: translatey(-100%);
}
header .user {
float: right;
}
header .user li {
list-style: none;
float: left;
border-right: 0;
}
header .user li a {
height: 102px;
padding: 0 15px;
display: inline-block;
padding-top: 43px;
font-weight: 600;
font-size: 15px;
text-decoration: none!important;
}
header .user li a .mask {
width: 16px;
height: 16px;
overflow: hidden;
display: inline-block;
}
header .user li a .mask span {
display: block;
width: 16px;
height: 32px;
text-indent: -9999px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
-webkit-transform: translate(0px, 0px);
-moz-transform: translate(0px, 0px);
transform: translate(0px, 0px);
transition-delay: .05s;
-webkit-transition-delay: .05s;
}
header .user li a .num {
color: #cc3300;
}
header .user li a:hover .mask span,
header .user li a.active .mask span {
transition-delay: 0;
-webkit-transition-delay: 0;
-webkit-transform: translate(0px, -16px);
-moz-transform: translate(0px, -16px);
transform: translate(0px, -16px);
/*margin-top: -16px*/
}
header .user li.profile {
margin-right: 2px;
}
header .user li.profile a .mask span {
background: url('../images/header-user-light.png') 0 0 no-repeat;
}
header .user li.cart a .mask span {
background: url('../images/header-cart-light.png') 0 0 no-repeat;
}
header .user li.cart a.active .mask span {
background-image: url("../images/header-cart-light-active.png");
}
header .user li.lang a {
padding-top: 20px;
padding-right: 0;
-webkit-transition: padding-top 200ms linear;
-moz-transition: padding-top 200ms linear;
transition: padding-top 200ms linear;
}
header .user li.lang span {
display: inline-block;
width: 60px;
height: 60px;
line-height: 60px;
border: 1px solid #e9e7e6;
text-align: center;
color: #e9e7e6;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
}
header .user li.lang span:hover {
color: #a49993;
text-decoration: none;
border-color: #a49993;
}
.navbar-nav > li.li-language,
.touch header .navbar-nav > li.li-language {
border-top: 1px solid #f0edeb !important;
}
.home.menu-abs header {
position: absolute;
top: 0 !important;
}
.navbar-collapse.in nav,
.navbar-collapse.collapsing nav {
float: none;
border-right: none;
padding-right: 0;
height: auto;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #bfb6b1;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #a49993;
}
.navbar-nav > li:last-child {
border-right: 0;
}
.navbar-collapse .navbar-nav.navbar-right:last-child {
margin-right: 0;
}
#header-logo {
display: block;
width: 170px;
height: 102px;
float: left;
position: relative;
overflow: hidden;
background: none;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0;
padding: 0;
-webkit-transition: height 200ms linear;
-moz-transition: height 200ms linear;
transition: height 300ms linear;
}
#header-logo span {
display: block;
width: 170px;
height: 102px;
z-index:-1;
position: relative;
background: url('../images/logo.png') 0 0 no-repeat;
position: absolute;
top: 0;
left: 0;
text-indent: -9999px;
-webkit-transition: margin 200ms ease-in-out;
-moz-transition: margin 200ms ease-in-out;
-ms-transition: margin 200ms ease-in-out;
-o-transition: margin 200ms ease-in-out;
transition: margin 300ms ease-in-out;
}
.navbar-default .navbar-nav>li>a {
padding:0;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<header class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" id="header-logo" href="http://folksverona.com/"><span>Folks Verona</span></a>
</div>
<div class="user">
<ul>
<li class="profile">
<a href="http://folksverona.com/user">
<span class="mask"><span>Profile</span></span>
</a>
</li>
<li class="cart">
<a href="http://folksverona.com/shop/cart" id="bt-cart" >
<span class="mask"><span>Cart</span></span>
<span class="num"></span>
</a>
</li>
<li class="lang hidden-xs">
<span>Help</span>
</li>
</ul>
</div>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-collapse collapse">
<nav class="clearfix">
<ul class="nav navbar-nav navbar-right">
<li class=""><span data-hover="Home">Home</span></li>
<li class=""><span data-hover="Shop">Shop</span></li>
<li class=""><span data-hover="Test">Test</span></li>
<li class=""><span data-hover="About">About</span></li>
<li class=""><span data-hover="Contact">Contact</span></li>
<li class="visible-xs li-language"><span data-hover="IT">IT</span></li>
</ul>
</nav>
</div>
</div>
</header>
I suggest checking out the JSFIDDLE link because it is more accurate.
Try this
body {
background-image:url('../images/geometry2.jpg');
}
.homeBody {
display:none;
}
header {
padding:0 !important;
margin:0 !important;
font-family:"Raleway", sans-serif !important;
}
header nav a {
color:#fff !important;
font-family:"Raleway", sans-serif !important;
}
.navbar-nav > li {
color:#fff !important;
font-family:"Raleway", sans-serif !important;
}
header nav li:hover a, header nav li.active a {
color:#ecf0f1 !important;
}
header nav li:hover, header nav li.active {
color:#ecf0f1 !important;
}
.navbar-default .navbar-toggle .icon-bar {
background-color:#fff;
}
.navbar-default .navbar-toggle {
border-color:#fff;
}
.linkContain {
position:absolute;
}
#media screen and (max-width: 767px) {
.navbar-nav > li, .menu-small header .navbar-nav > li, .touch header .navbar-nav > li {
background:#0e6957;
}
}
.title {
width:100%;
margin-top:120px;
text-align:center;
font-family:'Lato', sans-serif, serif;
font-size:50px;
color:#2d2d2d;
}
.images-3 {
margin-top:30px;
}
.incenseTypes {
width:80%;
margin:40px auto 0 auto;
}
.smolder {
width:80%;
margin:40px auto 0 auto;
}
.smolder img {
width:100%;
}
.view-button {
width:100%;
height:50px;
line-height:50px;
background:#16a085;
color:#fff;
font-size:24px;
}
.view-button:hover {
background:#0e6957;
}
.aboutSection {
width:80%;
margin:auto;
}
.infoTitle {
font-family:'Lato', sans-serif, serif;
}
.infoTitle2 {
font-size:35px;
font-family:'Lato', sans-serif, serif;
}
.infoBullets {
font-size:18px;
}
.infoIntro {
font-size:18px;
}
.infoLink {
color:#3aa5d2;
}
footer {
height:100px;
background:#148d75;
color:#fff;
font-size:23px;
}
footer a {
color:#fff;
}
footer a:hover {
text-decoration:none;
color:#4cbceb;
}
.copyrightRow {
margin-top:15px;
}
ul.social-buttons {
margin-top: -10px;
margin-bottom: 0;
}
.social-buttons {
text-align:center;
}
.fa-facebook {
width:50px;
height:50px;
display:block;
background-image:url('../images/home/icons/facebook.svg');
background-repeat:no-repeat;
transition:all 0.4s;
}
.fa-facebook:hover {
background-image:url('../images/home/icons/facebookHover.svg');
}
.fa-twitter {
width:50px;
height:50px;
display:block;
background-image:url('../images/home/icons/twitter.svg');
background-repeat:no-repeat;
transition:all 0.4s;
}
.fa-twitter:hover {
background-image:url('../images/home/icons/twitterHover.svg');
}
.topScentsTitle {
width:80%;
margin:auto;
text-align:center;
font-size:35px;
color:#2d2d2d;
}
.topScents {
width:80%;
margin:20px auto 0 auto;
}
.buyNow {
width:80%;
margin:auto;
height:40px;
line-height:40px;
font-size:25px;
color:#fff;
}
.buyNow {
width:80%;
margin:auto;
height:40px;
line-height:40px;
font-size:18px;
color:#fff;
background:#148d75;
border:none;
padding:0px !important;
transition:all 0.3s;
-ms-transition:all 0.3s
}
.buyNow:hover {
background:#0e6957;
}
.moreInfo {
width:80%;
margin:5px auto 0 -4px;
height:40px;
line-height:40px;
font-size:18px;
color:#fff;
background:#34495e;
padding:0px !important;
border:none;
transition:all 0.3s;
-ms-transition:all 0.3s
}
.moreInfo:hover {
background:#2c3e50;
}
.btn {
padding:0;
}
.navbar-default .navbar-nav>li>a {
padding:0;
}
a {
-webkit-transition: color 200ms linear;
-moz-transition: color 200ms linear;
transition: color 200ms linear;
}
body {
/*background:#bg-light;*/
background: #fff;
font-family: "Raleway", sans-serif;
font-size: 13px;
color: #999999;
outline: none;
}
body.home {
background: #fff;
}
*,
a,
button,
input,
*:focus,
a:focus,
button:focus,
input:focus {
outline: none!important;
}
.centered {
float: none;
margin: 0 auto;
}
.neuton {
font-family: "Neuton", serif;
}
.neuton_bold {
font-family: "Neuton", serif;
font-weight: 700;
}
.neuton_italic {
font-family: "Neuton", serif;
font-style: italic;
}
.rale {
font-family: "Raleway", sans-serif;
}
.rale_medium {
font-family: "Raleway", sans-serif;
font-weight: 500;
}
.rale_bold {
font-family: "Raleway", sans-serif;
font-weight: 700;
}
h1,
h2,
h3,
h4 {
font-family: "Neuton", serif;
color: #9a8e87;
}
h1 {
font-size: 48px;
line-height: 45px;
}
h2 {
font-size: 25px;
line-height: 22px;
}
a {
color: #666;
}
a:hover,
a:focus {
text-decoration: underline;
color: #333333;
}
.touch .touch-hide {
display: none;
}
.no-touch .touch-show {
display: none;
}
.touch .touch-show {
display: block;
}
.btn {
font-family: "Raleway", sans-serif;
font-weight: 500;
font-size: 13px;
text-transform: uppercase;
border-radius: 0;
-webkit-border-radius: 0;
padding: 15px 45px;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
background: #e2dbd7;
color: #fff;
}
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.open .dropdown-toggle.btn {
color: #ffffff;
background-color: #b5afac;
}
.btn-red {
color: #ffffff;
background-color: #cc3300;
}
.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red.active,
.open .dropdown-toggle.btn-red {
color: #ffffff;
background-color: #a32900;
}
.btn-red:active,
.btn-red.active,
.open .dropdown-toggle.btn-red {
background-image: none;
}
.form-group {
margin-bottom: 35px;
}
.control-label {
font-size: 16px;
color: #9a8e87;
font-family: "Raleway", sans-serif;
font-weight: normal;
text-transform: uppercase;
margin-bottom: 15px;
}
.form-control {
border-radius: 0;
-webkit-border-radius: 0;
background: none;
font-family: "Raleway", sans-serif;
color: #b7b7b7;
font-size: 14px;
box-shadow: none;
-webkit-box-shadow: none;
padding: 15px 10px;
height: 48px;
border: 1px solid #cac2b5;
}
.form-control:focus {
box-shadow: none;
border-color: #7c7c7c !important;
}
.form-control.required {
border-color: #cc3300!important;
border-left-width: 7px;
}
.control-label.required {
color: #cc3300;
}
.selectizer.required .selectizer-label {
border-color: #cc3300;
}
.right {
float: right;
}
.navbar-default {
height: 102px;
border-bottom: 1px solid #e9e7e6;
}
.navbar-nav > li {
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
padding: 0;
}
.navbar-nav > li > a {
padding: 0;
}
header {
background: #148d75 !important;
-webkit-transition: height 200ms linear;
-moz-transition: height 200ms linear;
transition: height 200ms linear;
}
header ul {
margin: 0;
padding: 0;
}
header .navbar-collapse {
float: right;
}
header nav {
float: right;
border-right: 1px solid #E9E7E6;
/* background: #bg-light;*/
}
header nav li {
/*border-left: 1px solid rgba(229,227,225,0); border-right: 1px solid rgba(229,227,225,0);*/
/*border-bottom: 1px solid #line-light;*/
cursor: pointer;
}
header nav a {
color: #dad1cd!important;
overflow: hidden;
height: 20px;
display: inline-block;
font-size: 15px;
text-transform: uppercase;
font-weight: 600;
}
header nav a span {
position: relative;
display: inline-block;
-webkit-transition: -webkit-transform 0.3s;
-moz-transition: -moz-transform 0.3s;
transition: transform 0.3s;
}
header nav li:hover,
header nav li.active {
/*background: #nav-light-hover-bg;*/
border-left-color: #e9e7e6;
border-right-color: #e9e7e6;
/*border-bottom: 1px solid #bg-light;*/
}
header nav li:hover a,
header nav li.active a {
color: #a49993!important;
}
header nav li.active {
background: #fff;
border-left: 1px solid #e9e7e6;
border-right: 1px solid #e9e7e6;
}
header nav li:not(.active) a span::before {
position: absolute;
top: 100%;
content: attr(data-hover);
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
width: 100%;
text-align: center;
}
header nav li:not(.active):hover a span,
header nav li:not(.active) a:focus span {
/* -webkit-transform: translatey(-100%);
-moz-transform: translatey(-100%);
transform: translatey(-100%);*/
}
header .user {
float: right;
}
header .user li {
list-style: none;
float: left;
border-right: 0;
}
header .user li a {
height: 102px;
padding: 0 15px;
display: inline-block;
padding-top: 43px;
font-weight: 600;
font-size: 15px;
text-decoration: none!important;
}
header .user li a .mask {
width: 16px;
height: 16px;
overflow: hidden;
display: inline-block;
}
header .user li a .mask span {
display: block;
width: 16px;
height: 32px;
text-indent: -9999px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
-webkit-transform: translate(0px, 0px);
-moz-transform: translate(0px, 0px);
transform: translate(0px, 0px);
transition-delay: .05s;
-webkit-transition-delay: .05s;
}
header .user li a .num {
color: #cc3300;
}
header .user li a:hover .mask span,
header .user li a.active .mask span {
transition-delay: 0;
-webkit-transition-delay: 0;
-webkit-transform: translate(0px, -16px);
-moz-transform: translate(0px, -16px);
transform: translate(0px, -16px);
/*margin-top: -16px*/
}
header .user li.profile {
margin-right: 2px;
}
header .user li.profile a .mask span {
background: url('../images/header-user-light.png') 0 0 no-repeat;
}
header .user li.cart a .mask span {
background: url('../images/header-cart-light.png') 0 0 no-repeat;
}
header .user li.cart a.active .mask span {
background-image: url("../images/header-cart-light-active.png");
}
header .user li.lang a {
padding-top: 20px;
padding-right: 0;
-webkit-transition: padding-top 200ms linear;
-moz-transition: padding-top 200ms linear;
transition: padding-top 200ms linear;
}
header .user li.lang span {
display: inline-block;
width: 60px;
height: 60px;
line-height: 60px;
border: 1px solid #e9e7e6;
text-align: center;
color: #e9e7e6;
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
transition: all 200ms linear;
}
header .user li.lang span:hover {
color: #a49993;
text-decoration: none;
border-color: #a49993;
}
.navbar-nav > li.li-language,
.touch header .navbar-nav > li.li-language {
border-top: 1px solid #f0edeb !important;
}
.home.menu-abs header {
position: absolute;
top: 0 !important;
}
.navbar-collapse.in nav,
.navbar-collapse.collapsing nav {
float: none;
border-right: none;
padding-right: 0;
height: auto;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #bfb6b1;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #a49993;
}
.navbar-nav > li:last-child {
border-right: 0;
}
.navbar-collapse .navbar-nav.navbar-right:last-child {
margin-right: 0;
}
#header-logo {
display: block;
width: 170px;
height: 102px;
float: left;
position: relative;
overflow: hidden;
background: none;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0;
padding: 0;
-webkit-transition: height 200ms linear;
-moz-transition: height 200ms linear;
transition: height 300ms linear;
}
#header-logo span {
display: block;
width: 170px;
height: 102px;
z-index:-1;
position: relative;
background: url('../images/logo.png') 0 0 no-repeat;
position: absolute;
top: 0;
left: 0;
text-indent: -9999px;
-webkit-transition: margin 200ms ease-in-out;
-moz-transition: margin 200ms ease-in-out;
-ms-transition: margin 200ms ease-in-out;
-o-transition: margin 200ms ease-in-out;
transition: margin 300ms ease-in-out;
}
.navbar-default .navbar-nav>li>a {
padding:0;
}
.navbar-default .navbar-nav > li > a {
color: #777;
display: block;
height: auto;
margin: 0;
width: 100%;
}
.nav.navbar-nav.navbar-right span {
padding: 40px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<header class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" id="header-logo" href="http://folksverona.com/"><span>Folks Verona</span></a>
</div>
<div class="user">
<ul>
<li class="profile">
<a href="http://folksverona.com/user">
<span class="mask"><span>Profile</span></span>
</a>
</li>
<li class="cart">
<a href="http://folksverona.com/shop/cart" id="bt-cart" >
<span class="mask"><span>Cart</span></span>
<span class="num"></span>
</a>
</li>
<li class="lang hidden-xs">
<span>Help</span>
</li>
</ul>
</div>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-collapse collapse">
<nav class="clearfix">
<ul class="nav navbar-nav navbar-right">
<li class=""><span>Home</span></li>
<li class=""><span>Shop</span></li>
<li class=""><span>Test</span></li>
<li class=""><span>About</span></li>
<li class=""><span>Contact</span></li>
<li class="visible-xs li-language"><span>IT</span></li>
</ul>
</nav>
</div>
</div>
</header>
I hired a guy to do my website a long time ago, and it never really got properly optimized for resizing windows. I've tried to get him to fix it but nothing has happened the last 5 months (he says he's too busy at the moment). I know the basics of coding on a website so i figured it wouldn't hurt to ask here, since i know you're an awesome community that likes to help each other. The site in question is http://dronebutikken.dk/
Basically there's 2 things right now that's really annoying. The search bar centers itself below the logo, and the shopping cart jumps to a second line when resizing to about half. What i want is for the search bar and shopping cart to stay in the right side in the same line. I realize that the menubar will be too wide then, so is it possible to resize the text when you resize the window? If so how?
Below is the style.css, the one that's actually on the website is minified, and i changed a few things here and there, but i don't recall changing anything in the menu or search bar/logo, so it should be the same, the only thing i changed is the font (changed it to Open Sans). I attached it below so you can ctrl/cmd+f for the relevant code.
I tried to do it myself a couple of times but i haven't managed to do it successfully yet, and it might scare some customers away that the webpage is constantly changing.
Style.css
/*
PALETTE:
navy basic : #434a54;
navy light : #565c65;
navy dark : #363b43;
grey basic : #dbe3e8;
grey light : #edf0f2;edf0f2
grey dark : #a7b7c1;
red basic : #e22a40;
red light : #f14a5e;
red dark : #d5041d;
green basic : #2ecc71;
green light : #6ddb9c;
green dark : #29b765;
*/
/* BASIC */
html {
position: relative;
min-height: 100%;
overflow-x: hidden;
}
/* TYPOGRAPHY */
body {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 400;
margin-bottom: 200px;
color: #000000;
}
#media(max-width:767px){
body {
margin-bottom: 370px;
margin-top: 55px;
}
body.no-menu {
margin-top: 0;
}
}
#top-nav, body > footer {
font-size: 0.85em;
}
h1 {
font-size: 35px;
}
h2 {
font-size: 24px;
}
h3 {
font-size: 22px;
}
h4 {
font-size: 20px;
}
h5 {
font-size: 18px;
}
/* HEADER */
#top-nav {
min-height: 40px;
}
#top-nav li > a {
padding-top: 10px;
padding-bottom: 10px;
}
#top-nav .navbar-text {
margin-bottom: 10px;
margin-top: 10px;
}
.form-search {
margin-top: 40px;
}
.form-search input {
padding: 10px 20px;
border: 0;
}
.form-search .search-wrap {
border: 3px solid #edf0f2;
border-radius: 2px;
}
.form-search > .input-append {
padding: 0;
}
.search-button {
padding: 2px 15px;
margin-top: -4px;
border-radius: 0 2px 2px 0;
margin-left: 0px;
background: #fff;
}
.search-button:hover {
background: #fff;
}
.search-button i {
font-size: 25px;
color: #dbe3e8;
}
.search-button:hover i {
font-size: 25px;
color: #a7b7c1;
}
#main-nav {
margin-top: 20px;
margin-bottom: 0;
border-radius: 2px;
border: none;
}
#main-nav .home > a {
padding-top: 15px;
padding-bottom: 0;
}
#main-nav .home > a > i {
font-size: 30px;
}
.navbar-nav.navbar-right:last-child {
margin-right: 0;
}
.nav-cart li > a {
font-weight: 300;
}
.nav-cart i {
font-size: 30px;
position: relative;
float: right;
}
.mega-dropdown i {
position: relative;
top: 1px;
font-weight: bold;
}
.mega-dropdown {
position: static !important;
}
.mega-dropdown-menu {
padding: 20px 0px;
width: 100%;
box-shadow: none;
-webkit-box-shadow: none;
border-radius: 2px;
background: #edf0f2;
}
.mega-dropdown-menu:before, .nav-cart-menu:before {
position: absolute;
top: -7px;
display: inline-block;
border-right: 7px solid transparent;
border-bottom: 7px solid #ccc;
border-left: 7px solid transparent;
border-bottom-color: rgba(0, 0, 0, 0.2);
content: '';
}
.mega-dropdown-menu:after, .nav-cart-menu:after {
position: absolute;
top: -6px;
display: inline-block;
border-right: 6px solid transparent;
border-bottom: 6px solid #ffffff;
border-left: 6px solid transparent;
content: '';
}
.mega-dropdown-menu:before {
left: 159px;
}
.mega-dropdown-menu:after {
left: 160px;
}
.nav-cart-menu:before {
right: 23px;
}
.nav-cart-menu:after {
right: 24px;
}
.mega-dropdown-menu div, .mega-dropdown-menu div > li {
margin: 0;
padding: 0;
}
.mega-dropdown-menu div > li {
padding: 0;
}
.mega-dropdown-menu div > li > ul, .nav-cart-menu li > ul {
padding: 0 10px;
}
.mega-dropdown-menu div > li:first-child, .mega-dropdown-menu div > li:last-child {
padding-left: 0;
}
.mega-dropdown-menu div > li:nth-child(2) > ul {
border-right: 1px solid #dfdfdf;
border-left: 1px solid #dfdfdf;
}
.mega-dropdown-menu div > li:last-child > ul {
padding-top: 15px;
border-top: 1px solid #dfdfdf;
}
#preview {
border-left: 1px solid #dfdfdf;
padding: 0 10px;
margin: 0;
}
#preview h3 {
font-size: 16px;
font-weight: bold;
}
#media (min-width: #screen-md-min) {
#preview {
display: none;
}
}
.mega-dropdown-menu div > li > ul > li, .nav-cart-menu li > ul > li {
list-style: none;
}
.mega-dropdown-menu div > li > ul > li > a, .nav-cart-menu li > ul > li > a {
display: block;
padding: 3px 0;
clear: both;
font-size: 16px;
font-weight: normal;
line-height: 1.428571429;
color: #565c65;
white-space: normal;
}
.mega-dropdown-menu div > li ul > li > a:hover, .mega-dropdown-menu div > li ul > li > a:focus {
text-decoration: none;
color: #444;
background-color: #f5f5f5;
}
.mega-dropdown-menu .dropdown-header, .nav-cart-menu .dropdown-header, .xs-search-widget-menu .dropdown-header {
color: #565c65;
font-size: 18px;
font-weight: bold;
padding: 0;
}
.mega-dropdown-menu form {
margin: 3px 20px;
}
.mega-dropdown-menu .form-group {
margin-bottom: 3px;
}
.nav-cart {
position: static !important;
}
.nav-cart-menu {
padding: 20px 0px;
width: 50%;
box-shadow: none;
-webkit-box-shadow: none;
border-radius: 2px;
background: #fafafa;
}
#media(max-width:767px){
body {margin-top: 70px;}
.brand {clear: both;}
.brand a {
text-align: center;
display: block;
margin-bottom: 10px;
}
#main-nav {
position: absolute;
width: 100%;
top: 0;
margin: 0;
left: 0;
z-index: 9999;
border-radius: 0;
}
#main-nav .navbar-nav {
margin-top: 0;
margin-bottom: 0;
}
.xs-cart-widget {
display: inline-block !important;
text-align: right;
float: right;
}
.home, .mega-dropdown, li.contact {
float: left;
}
#main-nav > .navbar-left {
padding: 0;
margin: 0
}
#main-nav > .navbar-left > li, li.contact {
display: inline-block;
}
#main-nav > .navbar-left > li.home, li.contact; {
height: 51px;
}
#main-nav > .navbar-left > li > a {
line-height: 51px;
height: 51px;
padding: 0 15px;
}
.navbar-nav .open .dropdown-menu {
position: static;
overflow: visible;
position: absolute !important;
background: #edf0f2;
width: 100%;
}
#main-nav > .navbar-left > li > a > i {
font-weight: 400;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding-left: 7px;
}
.mega-dropdown-menu div > li > ul > li > a,
.nav-cart-menu li > ul > li > a {
padding: 5px 7px;
}
.xs-search-widget div > li:last-child > ul {
border: none;
}
.xs-search-widget .dropdown-header {
text-align: center
}
.xs-search {
padding-top: 0;
}
.xs-search > a ,
li.contact > a,
.mega-dropdown > a {
font-size: 30px;
}
.xs-search > a > i ,
li.contact > a > i,
.mega-dropdown > a > i {
font-weight: 400;
}
.xs-search form {
margin: 0;
}
}
/* FEATURED */
#featured {
/*background:#434a54;*/
color:#fff;
min-height:340px;
border-radius:2px;
}
#featured .item {
display:block;
cursor:default;
/*background:#434a54;*/
padding:20px 0px;
min-height:340px;
margin:0;
color:#FFF;
-webkit-border-radius:2px;
-moz-border-radius:2px;
border-radius:2px;
text-align:center;
-webkit-tap-highlight-color:rgba(255, 255, 255, 0);
}
#featured .featured-text {
position:absolute;
margin-top:-150px;
right:20px;
margin-right: 20px;
float:right !important;
text-align: right;
}
.dark-text {
color:#434a54;
}
#media(max-width:767px) {
#featured .item {
min-height:150px;
}
#featured .item > div {
padding-left:0;
padding-right:0;
}
#featured {
border-radius:0;
margin-bottom: 10px;
min-height:150px;
}
#featured .featured-text {
color:#434a54;
position:relative;
margin-top:10px;
margin-right: 0;
float:none !important;
text-align: center !important;
right:auto;
}
.featured-row {
margin-bottom: 40px;
}
}
/* CONTENT */
.section-header h2, .category-header h2, .search-header h2, .page-header h2, .section-header h3 {
text-transform:uppercase;
font-weight:300;
margin-top:10px;
}
.section-header, .category-header, .search-header h2, .page-header h2 {
margin:40px 0;
}
.section-header h3 {
margin:0;
}
.section-header > div > a {
margin-top:10px;
color:#565c65;
font-weight:300
}
.section-header > div > a:hover {
text-decoration:none;
}
.section-header > div > a.btn-default {
color:#fff;
}
.product-grid, .product-images {
margin-top:20px;
margin-bottom:20px;
}
.product-grid .product, .product-images .product-image, #also .product {
border:3px solid #edf0f2;
border-radius:2px;
padding:2px 0 10px;
margin-bottom:20px;
}
.product-grid .product .title, #also .product .title {
font-size:16px;
}
.product-grid .product .price, #also .product .price {
font-size:20px;
font-weight:800;
}
.product-grid .product .price small {
font-weight:400;
}
.product-grid .product .special, .product-images .special, #also .product .special {
color:#fff;
padding:8px 20px;
font-size:14px;
position:absolute;
margin:10px;
}
.product-grid .product .special-new, .product-images .special-new, #also .product .special-new {
background:#565c65;
border-left:3px solid #363b43;
left:5px;
border-radius:0 2px 2px 0;
}
.product-grid .product .special-offer, .product-images .special-offer, #also .product .special-offer {
background:#f14a5e;
border-right:3px solid #d5041d;
right:5px;
border-radius:2px 0 0 2px;
}
.product-grid .product > p:last-child {
margin-bottom:0;
}
#breadcrumbs .breadcrumb {
font-size:14px;
border-radius:2px;
margin-top:10px;
background-color:#fff;
padding:0;
}
#breadcrumbs .breadcrumb .active a {
pointer-events:none;
cursor:default;
color:#777;
}
#single-product .product-image {
padding-bottom:2px;
}
#single-product #secondary-images {
margin:3px 0;
}
#single-product #secondary-images .thumbnail {
border:none;
padding:0;
margin-right:3px;
display:inline-block;
height:75px;
width:75px;
line-height: 75px;
}
.video-thumbnail > img {margin-top:10px; display:block; vertical-align: middle; line-height: 75px;}
.video-thumbnail .play {position: absolute; height:75px; width:75px; top:0; display: block; float:left;}
.video-thumbnail .play > img {opacity: 0.7;}
.video-thumbnail .play > img:hover {opacity: 1;}
#single-product #price-container {
background:#edf0f2;
padding:15px;
margin-top:20px;
margin-bottom:20px;
margin-left: 15px;
border-radius:2px;
}
#single-product #price-container .price {
font-size:24px;
font-weight:bold;
padding:10px 0 15px;
}
#single-product #price-container .in-stock, #single-product #price-container .out-of-stock {
font-size:14px;
border-bottom:1px solid #e8e8e8;
margin:0 -15px 20px;
text-align:center;
padding-bottom:10px;
}
#tabbed-info {
margin:50px 0 20px;
}
#tabbed-info .nav-tabs {
border:none;
margin-bottom:-1px;
}
#tabbed-info .nav-tabs > li > a {
background-color:#edf0f2;
border-radius:2px 2px 0 0;
color:#a7b7c1;
}
#tabbed-info .nav-tabs > li > a:hover {
background-color:#dbe3e8;
border-color:#dbe3e8;
color:#565c65;
}
#tabbed-info .nav-tabs > li.active > a {
border:2px solid #edf0f2;
border-radius:2px 2px 0 0;
border-bottom-color:#fff;
color:#565c65;
background-color:#fff;
}
#tabbed-info .tab-content {
border:2px solid #edf0f2;
padding:20px 15px;
border-radius:0 2px 2px 2px;
}
#related-products {
margin-top:50px;
}
#page-404 .form-search {
margin-top:0
}
#page-404 .search-wrap input {
height:43px;
}
#media(max-width:767px){
.category-header {
margin:30px 0 0;
}
#single-product #price-container {
border-radius:0;
margin-top:0;
}
#product-description {
padding-right:0;
padding-left:0;
}
.product-description-text {
padding-right:15px;
padding-left:15px;
}
.product-images {
margin-bottom:0;
margin-right:0;
margin-left:0;
padding:0;
}
.product-images .product-image {
border:none;
margin-bottom:5px;
}
}
#pager {
height:50px;
line-height:50px;
margin:0 0 30px;
}
#pager a {
background:#434a54;
color:#edf0f2;
}
#pager a:hover {
text-decoration:none;
background:#363b43;
}
#pager a, #pager .next, #pager .current {
padding:8px 15px;
border-radius:2px;
}
#also .category-header {
margin-bottom:10px;
}
/* CHECKOUT FLOW */
#checkout-steps {
margin-top:40px;
margin-bottom:40px;
height:113px;
}
#checkout-steps:after {
clear:both;
}
.stepwizard-step p {
margin-top:10px;
}
.process-row {
display:table-row;
}
.process {
display:table;
position:relative;
}
.process-step button[disabled] {
opacity:1 !important;
filter:alpha(opacity=100) !important;
}
.process-step i {
font-size:40px;
color:#a7b7c1;
}
.process-step .btn-primary:hover i {
color:#565c65;
}
.process-step .btn-default > i, .process-step .btn-success > i {
color:#fff;
}
.process-row:before {
top:35px;
bottom:0;
position:absolute;
content:"";
width:100%;
margin:0 -15px;
height:1px;
background-color:#ccc;
z-order:0;
}
.process-step {
display:table-cell;
text-align:center;
position:relative;
}
.process-step p {
margin-top:10px;
text-align:center;
}
.btn-circle {
width:70px;
height:70px;
text-align:center;
padding:0 0 3px 2px;
font-size:12px;
line-height:1.428571429;
border-radius:2px;
}
#basket #products {
margin-top:50px;
}
#basket #products-table, #approve #products-table {
display:table;
}
#basket #products-table > .product, #approve #products-table > .product {
display:table-row;
}
#basket #products-table > header.product, #approve #products-table > header.product {
color:#a7b7c1;
}
#basket #products-table > header.product > div, #approve #products-table > header.product > div {
border-bottom:none;
padding-bottom:0;
}
#basket #products-table > .product > div, #approve #products-table > .product > div {
display:table-cell;
padding:20px 5px;
vertical-align:middle;
border-bottom:1px solid #edf0f2;
}
.basket-widget #products-table > .product > div {
padding-top:5px !important;
}
.basket-widget {
margin-top:10px;
}
.basket-widget #basket-total {
margin-top:10px;
}
#basket #products-table > .product > div:last-child {
padding-right:0;
}
#basket #products-table > .product > div:first-child {
padding-left:0;
}
.product-qty input {
background-color:#fff;
background-image:none;
border:2px solid #dbe3e8;
border-radius:2px;
box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset;
color:#555;
font-size:14px;
line-height:1.42857;
padding:6px 12px;
text-align:center;
transition:border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
}
#coupon, #basket-total {
margin-top:50px;
}
#coupon input {
height:49px;
padding:10px 12px;
}
#coupon button {
margin-top:28px;
}
#basket-total #total {
font-size:20px;
font-weight:bold;
text-transform:uppercase;
border-top:2px solid #edf0f2;
padding:10px 0;
}
#basket-total #tax {
font-size:14px;
color:#a7b7c1;
}
#shipping-form #shipping_module {
padding-top:15px;
clear:both;
}
#approve #order-info dl {
margin-top:20px;
}
#order-info {
background:#edf0f2;
border-radius:2px;
padding-top:10px;
padding-bottom:10px;
}
#order-info h4 {
font-weight:300;
text-transform:uppercase;
}
#approve #order-info dl dd.gls-shop br:first-child{
display: none;
}
#continue {
margin:40px -15px;
}
#continue .prev {
text-decoration:underline;
}
#media(max-width:767px){
.process-step > a {
margin:3px;
}
#checkout-steps {
width:100%;
margin:10px -15px;
padding:0;
}
.product-decription {
font-weight:bold;
}
header > .product-decription, .product-decription > .visible-xs {
font-weight:400;
}
#coupon {
margin-top:10px;
}
.section-header {
margin-bottom:30px;
margin-top:0;
}
#approve #order-info dl {
padding-left:15px;
padding-right:15px;
}
}
/* FOOTER */
body > footer {
position:absolute;
bottom:0;
width:100%;
margin-top:30px;
min-height:200px;
background-color:#434a54;
color:#fff;
padding-top:2em;
}
#footer-nav > li > a {
padding:1px 0;
}
#footer-nav > li > a:hover {
background:none;
color:#fff;
}
/* FORMS */
form {
...
}
input {
...
}
i.form-control-feedback {
font-size:25px;
margin-right:5px;
margin-top:2px;
}
.has-error .form-control-feedback {
font-size:18px;
}
/* GENERAL GUBBINS */
.lg-icon {
font-size:1.7em;
}
.btn > i {
position:relative;
top:2px;
}
.lightbox { display: none; }
#media print {
/* All your print styles go here */
html,body {font-size:10pt;}
.section-header {margin-top:5px; margin-bottom: 5px;}
.section-header h2 {font-size: 11pt;}
.section-header h3 {font-size: 10pt;}
.footer-print {font-size: 9pt; bottom:0; text-align: center; margin-top: 40px;}
.brand {display:inline-block; text-align: right}
}
please check in combined.min.css and also in the html change col-sm-8 to col-sm-6
body {
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
font-size: 14px; //from 16px to 14px
font-weight: 400;
margin-bottom: 200px;
color: #000;
}
#media (min-width: 768px)
.col-sm-6 {
width: 50%;
float: right;// add this line
}
in html
<div class="row"><span class="brand col-md-6"><img src="assets/img/logo.png" alt="Dronebutikken.dk" title="Drone shop Logo" width="300"></span><div class="col-sm-6 hidden-xs"><form id="header-search-form" class="form-search form-horizontal pull-right" action="http://dronebutikken.dk/search"><div class="input-append col-sm-12"><div class="search-wrap"><input type="text" class="search-query" name="search" value="" placeholder="Indtast søgeord"><button type="submit" class="btn btn-primary search-button" value=" "><i class="flaticon-zoom22"></i></button></div></div></form></div></div>
I have two div's that I am trying to put space between <div id="menu"> and <div class="Content">.
Here is a screenshot of what it currently looks like and as you can see the image is right up against the bottom of the navigation menu.
I have added margins to both of them, but so far nothing that I do has worked. No amount of pixels has given any space between my navigation and the page content.
I have a margin-bottom on the <div class="Logo"> and that worked to put space below it so I just can't seem to figure out what I cant put space below the navigation and/or above the content.
HTML:
<!DOCTYPE html>
<html>
<head>
<title>EGLT Home</title>
<link rel="stylesheet" type="text/css" href="site.css" />
<script language="javascript" type="text/javascript" src="responsivemenu.js"></script>
</head>
<body>
<div class="box-effect">
<div class="Header">
<div class="Logo">
<img src="images/EverClearLogo.png" width="306px" height="125px" alt="Company Logo" />
</div>
<div class="Contact-Info">
<img src="images/icon_Email.png" width="50px" height="50px" alt="Email Ever Clear" />
<img src="images/icon_Facebook.png" width="50px" height="50px" alt="Ever Clear Facebook Page" />
<img src="images/icon_Phone.png" width="50px" height="50px" alt="Go To Contact Us Page" />
</div>
<div id="menu" class="nav">
<ul>
<li><span class="icon"><i aria-hidden="true" class="icon-home"></i><span></span>Home</span></li>
<li><span class="icon"><i aria-hidden="true" class="icon-newspaper"></i><span></span>About Us</span></li>
<li><span class="icon"><i aria-hidden="true" class="icon-hammer"></i><span></span>Services</span></li>
<li><span class="icon"><i aria-hidden="true" class="icon-image"></i><span></span>Gallery</span></li>
<li><span class="icon"><i aria-hidden="true" class="icon-phone"></i><span></span>Contact Us</span></li>
</ul>
</div>
</div>
<div class="Content">
<div class="Home-Left">
<img src="images/EverClearEdited.jpg" width="547px" height="315px" alt="Ever Clear Grading Landscaping Trucking" />
</div>
<div class="Home-Right">
</div>
</div>
<div class="Footer">
<div class="Copyright">
© Copyright: Jason Milam - 2015
</div>
</div>
</div>
</body>
</html>
CSS:
/* SHARED STYLES */
body {
color: #333;
font-size: .85em;
font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
background-image: url("images/RedHexagons.jpg");
}
.Header {
height: 125px;
width: 100%;
position: relative;
margin-bottom: 20px;
}
.Footer {
float: left;
clear: left;
}
.box-effect {
margin-left: auto;
margin-right: auto;
margin-top: 25px;
margin-bottom: 25px;
width: 90%;
padding: 25px;
background-color:#FFF;
background: rgba(255,255,255,0.85);
border-radius: 15px;
overflow: hidden;
}
.Logo {
width: 306px;
margin-bottom: 20px;
}
.Contact-Info {
font-size: 20px;
display: block;
position: absolute;
right: 0;
top: 0;
}
.Copyright {
margin-top: 10px;
}
/* HOME PAGE STYLES */
.Content {
margin-top: 30px;
}
.Home-Left {
width: 50%;
float: left;
}
.Home-Right {
width: 50%;
}
/* NAVIGATION MENU */
#font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?8n7hjk');
src:url('fonts/icomoon.eot?#iefix8n7hjk') format('embedded-opentype'),
url('fonts/icomoon.woff?8n7hjk') format('woff'),
url('fonts/icomoon.ttf?8n7hjk') format('truetype'),
url('fonts/icomoon.svg?8n7hjk#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
#media screen and (-webkit-min-device-pixel-ratio:0) {
#font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.svg?8n7hjk#icomoon') format('svg');
}
}
[class^="icon-"], [class*=" icon-"] {
font-family: 'icomoon';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#menu {
display: block;
margin-bottom: 20px;
}
.icon-home:before {
content: "\e900";
}
.icon-newspaper:before {
content: "\e904";
}
.icon-image:before {
content: "\e90d";
}
.icon-phone:before {
content: "\e942";
}
.icon-hammer:before {
content: "\e996";
}
.icon-menu:before {
content: "\e9bd";
}
/* Global CSS for all screen sizes */
.nav {
display: block;
margin-bottom:30px;
}
.nav ul {
max-width: 1200px;
margin: auto;
padding: 0;
list-style: none;
font-size: 1em;
font-weight: 300;
}
.nav li span {
display: block;
}
.nav a {
display: block;
color: rgba(249, 249, 249, .9);
text-decoration: none;
transition: color .5s, background .5s, height .5s;
}
.nav i{
/* Make the font smoother for Chrome */
transform: translate3d(0, 0, 0);
}
/* Remove the blue Webkit background when element is tapped */
a, button {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* Hover effect for nav menu */
.no-touch .nav ul:hover a {
color: rgba(0, 0, 0, .5);
}
.no-touch .nav ul:hover a:hover {
color: rgba(0, 0, 0, 0.99);
}
.nav li:nth-child(6n+1) {
background: #000000;
}
.nav li:nth-child(6n+2) {
background: #000000;
}
.nav li:nth-child(6n+3) {
background: #000000;
}
.nav li:nth-child(6n+4) {
background: #000000;
}
.nav li:nth-child(6n+5) {
background: #000000;
}
.no-touch .nav li:nth-child(6n+1) a:hover,
.no-touch .nav li:nth-child(6n+1) a:active,
.no-touch .nav li:nth-child(6n+1) a:focus {
border-bottom: 4px solid #E36220;
}
.no-touch .nav li:nth-child(6n+2) a:hover,
.no-touch .nav li:nth-child(6n+2) a:active,
.no-touch .nav li:nth-child(6n+2) a:focus {
border-bottom: 4px solid #E36220;
}
.no-touch .nav li:nth-child(6n+3) a:hover,
.no-touch .nav li:nth-child(6n+3) a:active,
.no-touch .nav li:nth-child(6n+3) a:focus {
border-bottom: 4px solid #E36220;
}
.no-touch .nav li:nth-child(6n+4) a:hover,
.no-touch .nav li:nth-child(6n+4) a:active,
.no-touch .nav li:nth-child(6n+4) a:focus {
border-bottom: 4px solid #E36220;
}
.no-touch .nav li:nth-child(6n+5) a:hover,
.no-touch .nav li:nth-child(6n+5) a:active,
.no-touch .nav li:nth-child(6n+5) a:focus {
border-bottom: 4px solid #E36220;
}
/* Place the icon */
.icon {
padding-top: 1.4em;
}
.icon + span {
margin-top: 2.1em;
transition: margin .5s;
}
/* Animating the height of the element*/
.nav a {
height: 7em;
}
/* Making the text follow the height animation */
.no-touch .nav a:hover .icon + span {
margin-top: 3.2em;
transition: margin .5s;
}
/* Positioning the icons and preparing for the animation*/
.nav i {
position: relative;
display: inline-block;
margin: auto;
padding:0.4em;
border-radius: 50%;
font-size: 1.8em;
box-shadow: 0 0 0 0.8em transparent;
background: rgba(255,255,255,0.1);
transform: translate3d(0, 0, 0);
transition: box-shadow .6s ease-in-out;
}
/* Styling the toggle menu link and hiding it */
.nav .navtoogle{
display: none;
width: 100%;
padding: 0.5em 0.5em 0.8em;
font-family: 'Lato',Calibri,Arial,sans-serif;
font-weight: normal;
text-align: left;
color: rgb(7, 16, 15);
font-size: 1.2em;
background: none;
border: none;
border-bottom: 4px solid rgb(221, 221, 221);
cursor: pointer;
}
.navtoogle i{
z-index:-1;
}
.icon-menu {
position: relative;
top: 3px;
line-height: 0;
font-size: 1.6em;
}
/* RESPONSIVE STYLES */
#media (min-width: 800px) {
/* Transforms the list into a horizontal navigation */
.nav li {
float: left;
width: 16.66666666666667%;
text-align: center;
transition: border .5s;
}
.nav a {
display: block;
width: auto;
}
}
/* The "tablet" and "mobile" version */
#media (max-width: 799.9px) {
/* Instead of adding a border, we transition the background color */
.no-touch .nav ul a:hover,
.no-touch .nav ul a:active,
.no-touch .nav ul a:focus {
background: #000000;
}
.nav ul li {
transition: background 0.5s;
}
}
/* CSS for a 2x3 columns version */
#media (min-width: 520px) and (max-width: 799px) {
/* Creating the 2 column layout using floating elements once again */
.nav li {
display: block;
float: left;
width: 50%;
height: 90px;
}
/* Adding some padding to make the elements look nicer */
.nav a {
padding-left: 1em;
}
/* Displaying the icons on the left, and the text on the right side using inline-block */
.nav li span,
.nav li span.icon {
display: inline-block;
}
.nav li span.icon {
width: 50%;
}
.nav li .icon + span {
font-size: 1em;
}
.icon + span {
position: relative;
/*top: -0.2em*/
}
/* Adapting the animation for smaller screens*/
.nav li i {
display: inline-block;
padding: 8% 9%;
border: 4px solid transparent;
border-radius: 50%;
font-size: 1.5em;
background: rgba(255,255,255,0.1);
transition: border .5s;
}
/* Transition effect on the border color */
.no-touch .nav li:hover i,
.no-touch .nav li:active i,
.no-touch .nav li:focus i {
border: 4px solid rgba(255,255,255,0.1);
}
}
/* Adapting the font size and width for smaller screns*/
#media (min-width: 32.5em) and (max-width: 38.688em) {
.nav li span.icon {
width: 50%;
}
.nav li .icon + span {
font-size: 0.9em;
}
}
#media (max-width: 32.438em) {
/* Unhiding the styled menu link */
.nav .navtoogle{
margin: auto;
display: block;
}
/* Animating the height of the navigation when the button is clicked */
/* If JavaScript is disabled, the menu stays open */
.no-js .nav ul {
max-height: 30em;
overflow: hidden;
}
/* When JavaScript is enabled, we hide the menu */
.js .nav ul {
max-height: 0em;
overflow: hidden;
}
/* Displaying the menu when the user has clicked on the button */
.js .nav .active + ul {
max-height: 30em;
overflow: hidden;
transition: max-height .4s;
}
/* Adapting the layout of the menu for smaller screens */
.nav li span {
display: inline-block;
height: 100%;
}
.nav a {
padding: 0.5em;
}
.icon + span {
margin-left: auto;
font-size: 0.8em;
}
.nav li {
border-left: 8px solid #E36220;
}
/* make the nav bigger on touch screens */
.touch .nav a {
padding: 0.8em;
}
}
The reason the margin-bottom is working as applied to .menu is two-fold. First, there is a height on .Header that is smaller than the content it contains. Second, your floating all of the li elements left, thus .menu really has no height. If you remove the height from .Header, and remove float:left from the li elements, and instead use display:inline-block on them, the margin works.
Then your li elements will need to be fixed a bit so there's not space in between them.
your .nav li is floated, add a clear:both div after your menu and it should solve the problem