CSS works fine on chrome on desktop and android but does not work on safari - html

So I have a website for which I have the style.css and responsive CSS defined. The CSS works fine on laptop and android's chrome but kinda messes up in safari
The main problem is that the background image in the section, i.e. 1.webp appears perfectly in android and desktop chrome and firefox but fails to do so in safari. Somebody said that since there is no resolution set so that's why the safari is messing up. I would want an expert's opinion. Please help me out
<section class="whatwe" id="register" style="background: url(img/1.webp) no-repeat fixed center center/cover;">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-center">
<div class="wedoContent">
<h2 class="lead color_white">Get Your Tickets</h2>
<!--a href="/form/register.html" id="rzp" class="bes_button" target="_blank">Register Now</a-->
<div id="wrapper">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="circle c1 img-circle">
<h4 class="grey">Bennett University</h4>
<br>
<!--span class="icon blue"><i class="fa fa-eur"></i></span-->
<span class="price-large">1249</span>
<!--span class="price-small">90</span-->
<!--button type="button" class="btn btn-info">Choose</button-->
</div>
</div>
<!-- .Col-md-3 ends here -->
<div class="col-md-3">
<div class="circle c2 img-circle">
<h4 class="red">Early Bird</h4>
<br>
<!--span class="icon yellow"><i class="fa fa-eur"></i></span-->
<span class="price-large red">999</span>
<!--span class="price-small">90</span-->
<!--a href="form/early_bird.html" id="rzp" class="bes_button"
target="_blank">Register</a-->
<h4 class="red"> Coming Soon</h4>
<!--button type="button" class="btn btn-warning">Choose</button-->
</div>
</div>
<!-- .Col-md-3 ends here -->
<div class="col-md-3">
<div class="circle c3 img-circle">
<h4 class="grey">Gen Pop</h4>
<br>
<!--span class="icon green"><i class="fa fa-eur"></i></span-->
<span class="price-large grey">1499</span>
<br>
<!--button type="button" class="btn btn-success">Choose</button-->
</div>
</div>
<!-- .Col-md-3 ends here -->
<!--div class="col-md-3">
<div class="circle c4 img-circle">
<h4 class="red">Deluxe Plan</h4>
<span class="icon red"><i class="fa fa-eur"></i></span>
<span class="price-large red">8,</span>
<span class="price-small">90</span>
<p>Great for small Business</p>
<button type="button" class="btn btn-danger">Choose</button>
</div>
</div-->
<!-- .Col-md-3 ends here -->
</div>
<!-- .Container ends here -->
</div>
<!-- .Row ends here -->
</div>
<div class="mouseSlider" style="margin-top:200px;">
<img src="img/mouse.png" alt="">
<img src="img/mouseh.png" alt="">
</div>
</div>
</div>
</div>
</div>
</section>
And here is the CSS :
.whatwe{
height: -webkit-fill-available;;
}
.wedoContent{
padding-top: 36vh;
}
.wedoContent h5 {
margin-bottom: 39px;
}
.wedoContent h2{
margin-bottom: 29px;
}
#charset "utf-8";
* {
padding:0;
margin:0;
border:0;
}
body {
background: #d5d5d5;
font-family:trebuchet MS;
color:#6B6B6B;
border: 0 none;
margin: 0;
font-size:13px;
padding: 0;
}
#wrapper{
padding: 60px 0px;
margin-left: 50px;
}
.container{}
.row{}
.circle{
background: #ffffff;
padding: 35px;
text-align: center;
height: 80%;
width: 80%;
border: 8px solid #F2F2F2;
transition: all 0.5s;
-moz-transition: all 0.5s; /* Firefox 4 */
-webkit-transition: all 0.5s; /* Safari and Chrome */
-o-transition: all 0.5s; /* Opera */
}
.circle h4{
margin: 0;
padding: 0;
}
.circle p{}
.circle span{}
.circle span.icon{
}
.circle span.icon i{
font-size: 48px;
}
.circle span.price-large{
font-size: 68px
}
.price-small{
font-size: 24px
}
.c1:hover{
background: #39b3d7;
color: #ffffff;
}
.c1 .blue{
color: #39b3d7;
}
.c1:hover .blue{
color: #ffffff;
}
.c2:hover{
background: #ed9c28;
color: #ffffff;
}
.c2 .yellow{
color: #ed9c28;
}
.c2:hover .yellow{
color: #ffffff;
}
.c3:hover{
background: #47a447;
color: #ffffff;
}
.c3 .green{
color: #47a447;
}
.c3:hover .green{
color: #ffffff;
}
.c4:hover{
background: #d2322d;
color: #ffffff;
}
.c4 .red{
color: #d2322d;
}
.c4:hover .red{
color: #ffffff;
}
.c1 .grey{
color: #696969;
}
.c1:hover .grey{
color: #ffffff;
}
.c2 .grey{
color: #696969;
}
.c2:hover .grey{
color: #696969;
}
.c3 .grey{
color: #696969;
}
.c3:hover .grey{
color: #696969;
}
.c1 .red{
color: #d2322d;
}
.c1:hover .red{
color: #ffffff;
}
.c2 .red{
color: #d2322d;
}
.c2:hover .red{
color: #ffffff;
}
.c3 .red{
color: #d2322d;
}
.c3:hover .red{
color: #ffffff;
}
.c2:hover{
background: #d2322d;
color: #ffffff;
}
.c1:hover{
background: #696969;
color: #ffffff;
}
.c3:hover{
background: #696969;
color: #ffffff;
}
.c3:hover .grey{
color: #ffffff;
}

.webp format is not supported in Safari Browser, You should load different format for safari using CSS Feature Query:

Related

Rows aren't collapsing on mobile view

My bootstrap rows are not stacking on top of each other in mobile view. I have a row of 3 cols and a row of 4 cols. The rows that aren't collapsing are the .about-content row in the #about section and 4 col row is in the #member section. Any help would be appreciated, Thanks! Here's the website: https://alex-carver.github.io/Smart-Carnival/
/*element style--------*/
section{
margin-top: 100px;
margin-bottom: 100px;
width: 100%;
}
hr{
width: 100%;
margin-left: auto;
margin-right: auto;
background-color: #c1282d;
height: 4px;
}
.hr-2{
width: 100%;
margin-left: auto;
margin-right: auto;
background-color: #fff;
height: 4px;
}
h1, h2{
font-family: 'chunkfiveregular' , sans-serif;
}
h2{
font-size: 45px;
color: #020304;
}
p{
font-family:'proxima_novasemibold' , sans-serif;
}
/*---nav styles----------*/
nav, .navbar .navbar-default{
margin-bottom: 0!important;
height: 80px;
}
.navbar-default {
background-color: #fff;
border-color: transparent;
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 80px;
z-index: 4;
opacity: .9;
}
.navbar-right {
margin-right: 20px;
padding-top: 25px;
background:transparent!important;
}
.navbar-default .navbar-brand {
color:#c1282d;
}
.navbar-brand .logo{
float: left;
height: 60px;
padding-bottom: 10px;
}
.navbar-default .navbar-nav>li>a {
color:#c1282d;
font-size: 22px;
background:#fff;
font-family: 'proxima_novasemibold', sans-serif;
font-weight: 400;
}
.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover {
color: #fff;
background-color: #c1282d;
}
.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;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #c1282d;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
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);
color:#fff;
}
.dropdown-menu>li>a{
color: #fff;
font-size: 15px;
}
.navbar-right{
margin-right: 20px;
}
/*-------header styles-------*/
header{
width:100%;
height: 710px;
background:url(../img/header2.png);
background-position: center;
background-repeat: no-repeat;
margin:0;
padding: 0;
}
.jumbotron{
background: transparent;
margin-top: 45px;
color:#fff;
width:100%;
}
.header-text-color{
color: #c1282d;
font-size: 90px;
}
.jumbotron h1{
margin-bottom: 25px;
font-size: 80px;
letter-spacing: 3px;
font-family: 'chunkfiveregular' , sans-serif!important;
}
.jumbotron p {
margin-bottom: 25px;
font-size: 30px;
font-family: 'proxima_novasemibold' , sans-serif;
}
.btn-primary{
background:#c1282d;
color:#fff;
border:none;
box-shadow: 3px 5px 5px rgba(0,0,0,0.5);
margin-right: 20px;
font-family: 'proxima_novathin' , sans-serif;
padding:15px;
}
.btn-primary:hover{
background:#fff;
color: #c1282d;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
.photos-btn{
background:#828383;
color: #fff;
}
.social-icons {
margin-left: 20px;
margin-top: 5px;
}
.social-icons a{
color: #fff;
}
.social-icons a:hover{
color: #c1282d;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
i {
margin-right: 5px;
}
/*-------------About Section----------*/
.about-text-color{
color:#c1282d;
font-size: 50px;
}
.about-content{
height: 400px;
text-align: center;
padding:20px;
font-size: 20px;
font-family: 'proxima_novasemibold' , sans-serif;
}
.about-text{
padding:50px;
font-size: 30px;
background: #f2f2f2;
border-radius: 10px;
margin-top: 20px;
color: #020304;
}
/*-------Team Section Styles---------*/
#team{
height: 520px;
border-top: 1px solid #828383;
}
.member-heading{
margin-top: 40px;
}
.member-text-color{
color: #c1282d;
font-size: 50px;
}
.member-wrapper{
background:#fff;
border-radius: 10px;
padding:20px;
box-shadow: 6px 5px 5px rgba(0,0,0,0.5);
margin-left: auto;
margin-right: auto;
}
.member-content{
background:#c1282d;
text-align: center;
padding:20px;
color: #020304;
font-family: 'proxima_novasemibold' , sans-serif;
margin-top:20px;
}
/*----------Footer Styles------------*/
footer{
width: 100%;
text-align: center;
margin:0;
}
.footer-logo{
height: 100px;
width: 300px;
text-align: center;
}
/*----------media queries----------*/
#media (max-width: 767px){
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: 100%;
margin-top: 0;
background-color:#c1282d;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
color: #020304;
}
.navbar-default .navbar-nav>li>a {
color: #c1282d;
font-size: 22px;
background: #fff;
font-family: 'Roboto', sans-serif;
font-weight: 400;
border:1px, solid #000;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #020304;
background-color: #fff;
}
}
/* ----------- iPhone 6, 6S, 7 and 8 ----------- */
/* Portrait and Landscape */
#media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2) {
.navbar-brand {
float: left;
height: 50px;
padding: 15px 30px;
font-size: 30px;
line-height: 20px;
font-weight: 400;
font-family: 'Roboto', sans-serif;
}
.navbar-default .navbar-toggle {
border-color: #c1282d;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #c1282d;
}
header{
width:100%;
height: 670px;
background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url("../img/header2.png") no-repeat center;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
margin:0;
padding: 0;
}
.jumbotron{
background: transparent;
margin-top: 120px;
color:#fff;
padding-bottom: 0px;
margin-bottom: 0px;
}
.social-icons-small a{
color: #fff;
}
.social-icons-small a:hover{
color: #c1282d;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
#team{
height: 800px;
border-top: 1px solid #828383;
}
.jumbotron h1{
margin-bottom: 20px;
font-size: 40px;
letter-spacing: 3px;
font-family: 'chunkfiveregular' , sans-serif!important;
}
.header-text-color{
color: #c1282d;
font-size: 40px;
}
/*-------------About Section----------*/
h2{
font-size: 40px;
color: #020304;
}
.about-text-color{
color:#c1282d;
font-size: 40px;
}
.about-content{
height: 400px;
padding:20px;
font-size: 20px;
font-family: 'proxima_novasemibold' , sans-serif;
}
.about-text{
padding:50px;
font-size: 20px;
background: #f2f2f2;
border-radius: 10px;
margin-top: 20px;
color: #020304;
text-align: left;
}
/*-------Team Section Styles---------*/
#team{
width: 100%;
border-top: 1px solid #828383;
height: 400px;
}
.member-heading{
margin-top: 40px;
}
.member-text-color{
color: #c1282d;
font-size: 40px;
}
.member-wrapper{
background:#fff;
border-radius: 10px;
padding:20px;
box-shadow: 6px 5px 5px rgba(0,0,0,0.5);
width: 100%;
}
.member-content{
background:#c1282d;
text-align: center;
padding:0px;
color: #020304;
font-family: 'proxima_novasemibold' , sans-serif;
margin-top:20px;
font-size: 15px;
}
.photos-btn{
background:#828383;
color: #fff;
}
}
<!DOCTYPE html>
<html lang="eng">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./css/custom.css">
<title>Smart Carnival</title>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#myNavbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img class="logo img-responsive" src="./img/logo.png"></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li>Find My Photos</li>
<li class="dropdown">
About Us <span class="caret"></span>
<ul class="dropdown-menu">
<li>Why Smart Carnival</li>
<li>The Team</li>
</ul>
</li>
<li class="dropdown">
Clients <span class="caret"></span>
<ul class="dropdown-menu">
<li>Products</li>
<li>Value Proposition</li>
<li>Pricing</li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<header>
<div class="container">
<div class="jumbotron">
<h1><span class="header-text-color">S</span>mart <span class="header-text-color">C</span>arnival</h1>
<p>Modernizing and Amplifying the Attractions<br>and Amusements Industry.</p>
<p class="contact-button"><a class="btn btn-primary btn-lg" href="#" role="button">Contact Us</a><span><a class="photos-btn btn btn-primary btn-lg" href="#" role="button">Find My Photos</a></span></p>
</div>
</div>
</header>
<section id="about">
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
<h2>Why<span class="about-text-color"> Smart Carnival</span></h2>
<hr>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
<p class="about-text">
Smart Carnival’s mission is to modernize the amusement, carnival and inflatables industries with hardware and software that enhances the <br>carnival-goer’s experience and enhances revenue for its customers.
</p>
</div>
</div>
<div class="row about-content">
<div class="col-xs-4">
<img class="img-responsive" src="./img/camera.png">
<p class="text-content" >Smart Carnival’s camera is waterproof and has a super hydrophobic lens, so water will never ruin your photo. </p>
</div>
<div class="col-xs-4">
<img class="img-responsive" src="./img/photos.png">
<p class="text-contentt">Photos and slow motion videos can be edited, clipped, filtered downloaded straight to your phone or shared on social media! No other company offers as seamless a photo experience.</p>
</div>
<div class="col-xs-4">
<img class="img-responsive" src="./img/battery.png">
<p class="text-content">With an 8 hour battery life, Smart Carnival captures the special and fun moments all day long without needing to be recharged or replaced.</p>
</div>
</div>
</div>
</section>
<section id="team">
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
<h2 class="member-heading">The<span class="member-text-color"> Smart Carnival </span>Team</h2>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row member-content">
<div class="col-xs-3">
<div class="member-wrapper">
<img class="img-responsive" src="./img/member1.png">
<p class="text-content" >Jesse Ou<br>
Founder & CEO</p><br>
<p class="text-content">Lead Security Engineer,<br>Salesforce.com</p>
</div>
</div>
<div class="col-xs-3">
<div class="member-wrapper">
<img class="img-responsive" src="./img/member2.png">
<p class="text-content" >Larry Trowell<br>
CTO</p><br>
<p class="text-content">Principal Consaltunt,<br><b>Synopsys</b></p>
</div>
</div>
<div class="col-xs-3">
<div class="member-wrapper">
<img class="img-responsive" src="./img/member3.png">
<p class="text-content" >Josh Johns<br>
Co Founder & Sales</p><br>
<p class="text-content">Owner<br><b>J. Johns Studios</b></p>
</div>
</div>
<div class="col-xs-3">
<div class="member-wrapper">
<img class="img-responsive" src="./img/member4.png">
<p class="text-content" >Sara Abernethy<br>
Director of Business Development</p><br>
<p class="text-content"><b>Senior Strategist,<br>Idea Couture</b></p>
</div>
</div>
</div>
</div>
</section>
<!-- ==========================
FOOTER SECTION
=========================== -->
<footer>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 text-center">
<img class="footer-logo" src="./img/logo.png">
<p>All Rights Reserved. © 2018 Smart Carnival</p>
</div>
</div>
</div>
</footer>
<!-- ==========================
FOOTER SECTION END
=========================== -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
https://alex-carver.github.io/Smart-Carnival/
They aren't collapsing because you specified them to be uncollapsable.
col-xs-* means at the smallest screen.
So, 3x col-xs-4 is 12 which is a full row.

How to darken on hover all section

please give me a hand and explain how can I darken on hover all section.The code given below hovers only a section within a section where its written text but I would like all section to be darken.
index:
<section class="promo">
<div class="overlay">
<div class="container-fluid">
<div class="text-center col-md-12">
<h1>TEST</h1>
</div>
</div>
</div>
</section>
css:
.promo {
background-color: rgb(52, 132, 172);
color: white;
font-weight: 700;
line-height: 200%;
text-align: center;
padding: 50px;
}
.promo:hover > .overlay {
width:100%;
height:100%;
background-color:#000;
opacity:0.5;
}
try adding the padding into the overlay section instead.
<section class="promo">
<div class="overlay">
<div class="container-fluid">
<div class="text-center col-md-12">
<h1>TEST</h1>
</div>
</div>
</div>
</section>
Css:
.promo {
background-color: rgb(52, 132, 172);
color: white;
font-weight: 700;
line-height: 200%;
text-align: center;
}
.promo > .overlay {
padding: 50px;
}
.promo:hover > .overlay {
background-color:#000;
opacity:0.5;
}
codepen

Why is there extra space on right and bottom of the website?

I'm trying to remove the white space at the bottom and right side of the website. On the right side it seems that it's caused by the black navbar but I don't have a clue how to fix it.
/* Navbar */
.navbar-default {
background-color: transparent;
border-color: transparent;
}
.navbar-fixed-top .navbar-brand,
.navbar-fixed-top .navbar-nav>li>a {
color: #fff;
}
.navbar-default .navbar-toggle {
border-color: #000;
}
.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover {
background-color: #fff;
}
.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle {
background-color: transparent;
}
.navbar-fixed-top.scrolled {
background: black;
}
.navbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 8px;
margin-right: 15px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.non-underline {
text-decoration: none;
}
.navbar-fixed-top .navbar-brand,
.navbar-fixed-top .navbar-nav>li>a {
color: #fff!important;
}
.navbar-fixed-top .navbar-brand,
.navbar-fixed-top .navbar-nav>li>a:hover {
text-decoration: underline;
background-color: transparent;
color: #fff!important;
}
.navbar-nav>li>a:focus,
.navbar-nav>li>a:active,
.navbar-nav>li>a.active {
background-color: transparent;
color: #fff!important;
}
#logo-img {
width: 70%;
}
/* End Navbar */
/* Jumbotron */
#first {
padding: 0;
}
.jumbotron-image {
max-width: 100%;
height: auto;
}
h2>a {
color: #565656;
}
a:hover {
text-decoration: none;
}
#h1first {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #FFF;
font-family: 'Philosopher', sans-serif;
}
/* End Jumbotron */
/* About */
#abouth2 {
visibility: hidden;
}
#about-section {
padding-top: 8%;
padding-bottom: 10%;
}
.fadeInBlock {
opacity: 0;
}
#p-about {
font-size: 180%;
font-family: 'Raleway', sans-serif;
}
#img-about {
padding: 0;
}
/*End About*/
/*Portfolio*/
#portfolio-section {
background-color: ;
background: #B5927E;
background: -webkit-linear-gradient(left top, #B5927E, #6C5461);
background: -o-linear-gradient(bottom right, #B5927E, #6C5461);
background: -moz-linear-gradient(bottom right, #B5927E, #6C5461);
background: linear-gradient(to bottom right, #B5927E, #6C5461);
padding-top: 2%;
padding-bottom: 10%;
}
.headline {
font-family: 'Merriweather', serif;
color: #484A4A;
}
.headline.fadeInBlock>a {
color: #484A4A;
}
.headline.fadeInBlock>a:hover {
color: #484A4A;
}
#portfolio-id {
margin-bottom: 2%;
}
/*End Portfolio*/
/*Contact*/
#contact-section {
background-color: #4D3C4F;
padding-top: 2%;
padding-bottom: 5%;
}
.social-icons {
color: #b7b7b7;
}
.fa {
font-size: 40px;
padding: 20px;
transition: 0.5s;
}
.fa-facebook-official {
vertical-align: middle;
margin: auto;
}
.fa-twitter {
vertical-align: middle;
margin: auto;
}
.fa-free-code-camp {
vertical-align: middle;
margin: auto;
}
.fa-envelope {
vertical-align: middle;
margin: auto;
}
#facebook:hover {
color: #3b5998;
}
#twitter:hover {
color: #00aced;
}
#fcc:hover {
color: #006401;
}
#email:hover {
color: #92b8f4;
}
ul {
list-style: none;
}
/*End Contact*/
/*Footer*/
footer {
background-color: #382F4A;
}
#copy {
color: #FFFFFF;
}
/*End Footer*/
<!--Navbar-->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand"><img src="http://i64.tinypic.com/27wy82r.png" id="logo-img"></a>
<a 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>
</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav pull-right">
<li>Home</li>
<li>About</li>
<li>Portfolio</li>
<li>Contact</li>
</ul>
</div>
</div>
</div>
<!--End Navbar-->
<!--Jumbotron-->
<div class="row">
<div class="col-md-12">
<div class="jumbotron" id="first" href="#home">
<img class="jumbotron-image" src="http://netdna.webdesignerdepot.com/uploads/2014/07/featured36.jpg">
<h1 class="text-center fadeInPage" id="h1first">
Welcome to Cosmos<br> web design
</h1>
</div>
</div>
</div>
<!--End Jumbotron-->
<!--About-->
<div class="container" id="about-section">
<div class="row">
<div class="col-md-6">
<h2 class="text-center" id="abouth2"><a name="about">About</a></h2>
<p class="fadeInBlock" id="p-about">Cosmos Web Design was created by George Kech. I provide web solutions that require HTML, CSS, JavaScript and JQuery. I focus on serving the needs of each customer individually with complete satisfaction as my goal.</p>
</div>
<div class="col-md-6">
<img src="https://www.topechelon.com/wp-content/uploads/2016/07/devices-web-design.png" alt="web design" class="img-responsive">
</div>
</div>
</div>
<!--End About-->
<!--Portfolio-->
<div class="container-inner" id="portfolio-section">
<h2 class="text-center headline fadeInBlock" id="portfolio-id"><a name="portfolio">Portfolio</a> is coming soon...</h2>
<div class="container">
<div class="row text-center">
<div class="col-md-4">
<img src="https://lh4.googleusercontent.com/-fj6pace2cv0/U9Jt75Kq8PI/AAAAAAAARtE/ttg-4YuCOfQ/s250/exe_empty_thumbnail.jpg">
</div>
<div class="col-md-4">
<img src="https://lh4.googleusercontent.com/-fj6pace2cv0/U9Jt75Kq8PI/AAAAAAAARtE/ttg-4YuCOfQ/s250/exe_empty_thumbnail.jpg">
</div>
<div class="col-md-4">
<img src="https://lh4.googleusercontent.com/-fj6pace2cv0/U9Jt75Kq8PI/AAAAAAAARtE/ttg-4YuCOfQ/s250/exe_empty_thumbnail.jpg">
</div>
</div>
</div>
</div>
<!--End Portfolio-->
<!--Contact-->
<div class="container-fluid">
<div class="row" id="contact-section">
<div class="col-md-12">
<div class="text-center">
<i class="social-icons fa fa-facebook-official" id="facebook"></i>
<i class="social-icons fa fa-twitter" id="twitter"></i>
<i class="social-icons fa fa-free-code-camp" id="fcc"></i>
<i class="social-icons fa fa-envelope" id="email"></i>
<h3 id="contactMe">
<a name="contact"></a>
</h3>
</div>
</div>
</div>
</div>
<!--End Contact-->
<!--Footer-->
<footer>
<p class="text-center" id="copy">George Kech © 2017</p>
</footer>
And here's the link to the codepen: Codepen
I think it's your top level nesting. You need to wrap the jumbotron into a container div as well. You can make it fluid if you need full width:
<div class="container-fluid">
<div class="row">
...
</div>
Generally speaking, if you look at basic templates provided by boostrap's documentation, they place all body content into a container div.
This is due to the fact that each row has a -15px margin.
It's caused by your Bootstrap:
Every .row has a negative margin left and right, while every .col-* has a padding left and right by the same amount.
We have to get rid of that. But we need it back inside .container classes.
Look here: https://codepen.io/anon/pen/QpOyyo
I added this CSS:
/* Don't add padding to all elements that have classes like "col-md-*" */
[class^="col-md-"],
[class*=" col-md-"] {
padding-right: 0;
padding-left: 0;
}
/* Add back the Bootstrap padding, if inside .container */
.container [class^="col-md-"],
.container [class*=" col-md-"] {
padding-right: 15px;
padding-left: 15px;
}
/* Don't add negative margin for all rows */
.row {
margin-left: 0;
margin-right: 0;
}
/* Add back the Bootstrap margin, if inside .container */
.container .row {
margin-left: -15px;
margin-right: -15px;
}
Update: Add this as well to address the footer issue.
.container-fluid {
padding-right:0px;
padding-left:0px;
}
footer p{
margin:0;
}
its caused by the padding-right on the div .col-md-12. Set it to 0 and its fine.
The white space at the bottom is caused by the #copy in the footer, add margin-bottom: 0 to it.

Bootstrap Navbar not working properly in mobile view after custom styling

How do I fix spacing issues in bootstrap mobile view. My website runs perfectly on desktop but when I look at it in mobile view, there are spaces between the navbar menu links and the navbar itself. I used some margins in the desktop view so I think that's why it's doing it but how do I make it work for both?
Here is my html:
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Champs Haircuts</title>
<link rel="stylesheet" href="bootstrap-3.3.6-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="font-awesome-4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" href="styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="scripts.js"></script>
<script src="bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
</head>
<body>
<nav id="myNavBar" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.html" class="navbar-brand">
<img class="img-responsive" src="images/logo.png" alt="">
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right" id="mainNavbar">
<li>Services & Pricing</li>
<li id="contactLink">Contact</li>
</ul>
</div>
</div>
</nav>
<div class="modal fade" id="callToActionModal" role="dialog">
<div class="modal-dialog">
<!--Modal content -->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close">×</button>
<h2 class="text-center modal-title">Champs Haircuts</h2>
</div>
<div class="modal-body">
<h2 class="text-center">Call 847-677-2768</h2>
<p class="text-center">5113 Brown St, Skokie, IL 60077</p>
</div>
</div>
</div>
</div>
<header class="jumbotron">
<div class="container">
<div class="row row-header">
<div class="col-xs-12 col-sm-8">
<h1>Welcome to<br> <span>Champs Haircuts.</span></h1>
<br>
<p>Look and Feel Like a Champion.</p>
<br>
<br>
<button id="callToActionBtn" class="btn btn-lg">Make An Appointment</button>
<div style="padding: 20px 20px"></div>
</div>
<div class="col-xs-12 col-sm-4">
<img class="img-responsive" src="images/open-hours.png" alt="open hours" height="420" width="370">
</div>
</div>
</div>
</header>
<div id="about">
<div class="container">
<div class="row">
<div id="aboutDiv" class="col-xs-12 col-sm-4 col-sm-offset-4">
<h1 class="text-center">
Our Story
</h1>
</div>
<div style="padding: 60px 60px"></div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6">
<p>Are you tired of feeling like just another number at your franchise haircut shop? Are you tired of
getting the same disappointing haircut? Have you learned to make peace with it because there
possibly can't be
anything better or maybe that you have reached your max looking good potential? Well if any of those
describe you and you want to change those experiences... Then look no further and enter Champs
Haircuts!
<br><br>
We have 15 years of experience providing excellent hairstyles, quality control, and top of the line
customer service. We are a small shop located in Skokie and we treat you, how you treat you. We
refuse to treat you like just another number. Champs Haircuts... Where you come to look and feel
like a champion.
</p>
</div>
<div class="col-xs-12 col-sm-6">
<div class="text-center">
<a href="https://plus.google.com/100864823698189828429/about?pid=6176986613869798882&oid=100864823698189828429" target="_new">
<img class="img-responsive" src="images/champs-haircuts-lobby.jpg" alt="">
</a>
</div>
</div>
</div>
<hr>
</div>
</div>
<div id="testimonials">
<div class="container">
<div class="row">
<div id="testimonialsHeaderDiv" class="col-xs-12 col-sm-8 col-sm-offset-2">
<h1 class="text-center">
What People Say About Us On
<a class="underline_text" id="testimonialsYelp" href="http://www.yelp.com/biz/champs-haircuts-skokie">Yelp!</a>
</h1>
</div>
</div>
<!--
Copyright (c) 2013 Bootsnipp.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-->
<div class="row">
<div class="col-xs-12 col-md-12" data-wow-delay="0.2s">
<div class="carousel slide" data-ride="carousel" id="quote-carousel">
<!-- Bottom Carousel Indicators -->
<ol class="carousel-indicators">
<li data-target="#quote-carousel" data-slide-to="0" class="active"><img class="img-responsive "
src="images/qazi.png"
alt="">
</li>
<li data-target="#quote-carousel" data-slide-to="1"><img class="img-responsive"
src="images/me.png"
alt="">
</li>
<li data-target="#quote-carousel" data-slide-to="2"><img class="img-responsive"
src="images/rand.png"
alt="">
</li>
</ol>
<!-- Carousel Slides / Quotes -->
<div class="carousel-inner text-center">
<!-- Quote 1 -->
<div class="item active">
<blockquote>
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<p>This place is great. Lidija offers exceptional customer service. She is
extremely pleasant, gave me the best haircut I have ever received, and gives
very flattering complements.
Here are the services offered for the price of one haircut:
1. Haircut
2. Shampoo
3. Face/Scalp Massage
Oh my goodness the face massage is heaven. It feels so amazing. I sometimes
want to go back just for the massage... And did I mention I received the
best haircut ever?
Sincerely,
Qazi.
</p>
<small>Qazi</small>
</div>
</div>
</blockquote>
</div>
<!-- Quote 2 -->
<div class="item">
<blockquote>
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<p>All my life, I always went to the neighborhood salon where I received no
haircut that I truly liked. There was always something wrong. Also, they
treated me like a number. I was just another client they needed to get done
with.
I was recommended to try out Champs Haircuts by a good friend of mine who
regularly went here for his haircuts. I was both nervous and excited at the
same time.
Now that I have had my first haircut here, I can confidently say that this
is the best haircut place I have ever been to. The whole experience was just
amazing. I never felt that good after getting a haircut. I guess It's
because I had never received a proper haircut before this.
I recommend everyone to try out Champs Haircuts. Just give it a try. Just
one try. You will not regret it.</p>
<small>Tenzin</small>
</div>
</div>
</blockquote>
</div>
<!-- Quote 3 -->
<div class="item">
<blockquote>
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<p>I initially found out about champ's haircuts by typing "best men's haircut
near me" into a Google search. Based on the positive reviews I decided to
give it a shot. I am extremely glad I did. It's been nearly 4 years since I
started coming here and I have had a quality, professional haircut and
service every time.
Lidija takes her time and makes sure you are satisfied with your haircut
before you leave. You also get a great scalp massage and hot steam towel as
well. I recommend Lidija and champs haircuts to everyone looking for a long
term hair stylist.</p>
<small>Aida</small>
</div>
</div>
</blockquote>
</div>
</div>
<div style="padding: 90px 90px">
</div>
<!-- Carousel Buttons Next/Prev -->
<a data-slide="prev" href="#quote-carousel" class="left carousel-control"><i
class="fa fa-chevron-left"></i></a>
<a data-slide="next" href="#quote-carousel" class="right carousel-control"><i
class="fa fa-chevron-right"></i></a>
</div>
</div>
</div>
</div>
</div>
<br>
<div id="callToActionDiv">
<div class="container">
<div class="text-center">
<button id="callToActionBtnSecondary" class="btn btn-lg">Make An Appointment Now!</button>
</div>
</div>
</div>
<footer>
<div class="container">
<br>
<hr>
<div class="row row-content">
<div class="col-xs-12 col-sm-8">
<ul class="nav navbar-nav">
<li>Services & Pricing</li>
<li>Contact</li>
</ul>
</div>
<div class="col-xs-12 col-sm-4">
<ul class="nav navbar-nav navbar-right">
<i class="fa fa-google-plus fa-2x"></i>
<a href="http://www.yelp.com/biz/champs-haircuts-skokie" class="btn btn-circle" target="_new"><i
class="fa fa-yelp fa-2x"></i></a>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>
Here is my css:
html, body {
overflow-x: hidden;
}
body {
padding-top: 100px;
}
#myNavBar {
background-color: #006495;
height: 100px;
}
#myNavBar a {
color: white;
height: 100px;
}
.navbar-brand {
font-size: 2em;
line-height: 70px;
}
#mainNavbar > li {
font-size: 1.1em;
margin-left: 20px;
background-color: #004C70;
height: 50px;
margin-top: 20px;
border-radius: 4px;
}
#mainNavbar > li:hover {
background-color: #0093D1;
}
#mainNavbar > #contactLink {
background-color: #F4D00C;
color: black;
}
#myNavBar span {
background: white;
}
#mainNavbar > #contactLink:hover {
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000px;
}
#keyframes shake {
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
20%, 80% {
transform: translate3d(2px, 0, 0);
}
30%, 50%, 70% {
transform: translate3d(-4px, 0, 0);
}
40%, 60% {
transform: translate3d(4px, 0, 0);
}
}
.navbar-nav > #contactLink > a {
color: #004C70;
font-weight: bold;
}
.jumbotron h1 > span{
color: #006495;
}
#callToActionBtn:hover {
background: #006495;
color: white;
font-weight: bold;
}
#callToActionBtn {
font-weight: bold;
background: white;
color: #3d3d3d;
border: 2px solid #3d3d3d;
}
#aboutDiv {
}
#about h1 {
background: #004C70;
color: white;
padding: 20px 20px;
}
#about p {
font-size: 1.4em;
font-style: normal !important;
color: #666666;
}
/* Carousel */
#quote-carousel {
padding: 0 10px 30px 10px;
margin-top: 30px;
/* Control buttons */
/* Previous button */
/* Next button */
/* Changes the position of the indicators */
/* Changes the color of the indicators */
}
#quote-carousel .carousel-control {
background: none;
color: #CACACA;
font-size: 2.3em;
text-shadow: none;
margin-top: 30px;
}
#quote-carousel .carousel-control.left {
left: -60px;
}
#quote-carousel .carousel-control.right {
right: -60px;
}
#quote-carousel .carousel-indicators {
right: 50%;
top: auto;
bottom: 0px;
margin-right: -19px;
}
#quote-carousel .carousel-indicators li {
width: 50px;
height: 50px;
margin: 5px;
cursor: pointer;
border: 4px solid #CCC;
border-radius: 50px;
opacity: 0.4;
overflow: hidden;
transition: all 0.4s;
}
#quote-carousel .carousel-indicators .active {
background: #333333;
width: 128px;
height: 128px;
border-radius: 100px;
border-color: #f33;
opacity: 1;
overflow: hidden;
}
.carousel-inner {
min-height: 300px;
}
.item blockquote {
border-left: none;
margin: 0;
}
.item blockquote p:before {
content: "\f10d";
font-family: 'Fontawesome';
float: left;
margin-right: 10px;
}
#testimonialsHeaderDiv {
height: 100px;
transform: skew(-20deg);
}
#testimonials h1 {
background: #004C70;
color: white;
padding: 20px 20px;
}
#testimonials h1 a {
color: #F2635F;
}
#testimonials h1 a:hover {
cursor: pointer;
text-decoration: none;
}
.underline_text {
border-bottom: solid 2px #F2635F;
display: inline;
padding-bottom: 3px;
}
#calltoactiondiv {
background: #eeeeee;
padding: 20px 20px;
color: #333333;
}
#callToActionBtnSecondary:hover {
background: #006495;
color: white;
font-weight: bold;
}
#callToActionBtnSecondary {
font-weight: bold;
background: white;
color: #3d3d3d;
border: 2px solid #3d3d3d;
padding: 20px 35px;
}
footer .navbar-nav li{
margin-right: 20px;
}
#servicesHeader {
background: #006495;
color: #ffffff;
padding: 10px 10px;
}
/* Contact Page Styles */
#contactHeader {
background: #006495;
color: #ffffff;
padding: 10px 10px;
}
.form-horizontal input {
font-size: 1.7em;
height: 50px;
}
.form-horizontal input {
outline: none;
border-bottom: 1px solid rgb(198, 198, 198);
border-top: none;
border-right: none;
border-left: none;
box-shadow: none;
}
.form-horizontal input:focus {
border-bottom: solid 4px #F2635F;
}
.form-horizontal textarea {
font-size: 1.5em;
border-bottom: 1px solid rgb(198, 198, 198);
border-top: none;
border-right: none;
border-left: none;
box-shadow: none;
}
.form-horizontal textarea:focus {
border-bottom: solid 4px #F2635F;
}
/*
.form-horizontal p {
color: rgb(93, 107, 125);
font-size: 1.4em;
}
*/
#contactDescription {
color: rgb(93, 107, 125);
font-size: 1.4em;
}
.form-horizontal button {
background: #006495;
color: #eeeeee;
}
.form-horizontal button:hover {
background: #F2635F;
color: #F4D00C;
}
.form-control::-webkit-input-placeholder { color: rgb(93, 107, 125); }
.form-control:-moz-placeholder { color: rgb(93, 107, 125);}
.form-control::-moz-placeholder { color: rgb(93, 107, 125); }
.form-control:-ms-input-placeholder { color: rgb(93, 107, 125); }
/* Services and Pricing */
.services h2 {
color: #636466;
}
.price {
color: #636466;
font-size: 1.5em;
margin-top: 20px;
}
.serviceDescription {
font-size: 1.1em;
}
I tried looking it up on stackoverflow and other resources, but nothing matched my exact scenario. I also tried to use media queries for screen size less than 480px. It still doesn't work. Thanks in advance for the help.
Here is a link to the site developertenzin.github.io/champs_haircuts
Please add this in your custome css file
#media screen and (max-width: 768px) {
#myNavBar {background-color: #006495;height: auto;padding: 12px 0px;}
.navbar-header{ height: 74px;}
#myNavBar a{height:auto;}
.navbar-nav {margin: 0px auto !important;}
#mainNavbar > li {margin-left: 0px;border-radius: 4px;margin-top:7px;}
#callToActionBtnSecondary{padding: 10px;}
#calltoactiondiv{padding:10px;}
#testimonials h1{padding: 0px;margin: 0px auto;}
.jumbotron{padding-top:0px !important;}
}
in your css remove margin from #mainNavbar > li
and add your margin
#media screen and (min-width: 768px) {
#mainNavbar > li {
margin-left: 20px;
border-radius: 4px;
}
}

How to make this website completely responsive?

I have been building a website on my laptop since a month, the website looks all nice and dandy on my machine(15 inch screen. However when I run it on different machines(17 inch and 13 inch) ones, it all goes haphazard. I have used bootstrap, my website is responsive to some extent but not fully.
Since I don't fully know which all parts of the site and responsible for the "un-responsiveness", I will post the whole code here.
HTML:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"></link>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="main.css"></link>
<link rel="stylesheet" href="css/navbar.css">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<title>Big Data for your city!</title>
</head>
<body>
<header>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class = "navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" rel="home" href="#" title="Explore around">
<img style="max-width:150px; margin-top: -7px;"
src="Images/logo.png">
</a>
</div>
<div class="collapse navbar-collapse" id="collapse">
<ul class="nav navbar-nav navbar-right">
<li>SIGN UP</li>
<li>LOG IN</li>
<li>ABOUT</li>
</ul>
</div>
</div>
</div>
</header>
<div class="jumbotron">
<div class="container-fluid">
<h1><center>Find amazing places near your city.</center></h1>
<p>Places you could travel to and explore in a weekend.</p>
<a class = "explore-anc" href="#Cities"><button id "exlpore-button" class="btn sm explore">Explore</button></a>
<p>OR</p>
<div class = "seach-area">
<form id="searchBox" action="/search" style="display:inline;" method="get">
<center><input id="text-enter" name="q" size="80" type="text" placeholder="Enter a place "/>
<input id="search-button" value="Search" type="submit"/></center>
</form>
</div>
</div>
</div>
<div class="learn-more" id ="learn">
<div class="container">
<div class = "row">
<div class = "col-md-4">
<h3>Cities with service</h3>
<p>Find all the cities here!</p>
</div>
<div class = "col-md-4">
<h3>Analyze</h3>
<p>Big data analyics</p>
</div>
<div class = "col-md-4">
<h3>Vlue</h3>
<p>Add value to all your stuff here!</p>
</div>
</div>
</div>
</div>
<div id = "Cities" class = "neighborhood-guides">
<div class = "container">
<h2>Cities:</h2>
<p>Start exploring places around your city</p>
<div class = "row">
<div class = "col-md-4">
<div class = "thumbnail" ng-click = "city NY">
<image src = "Images/NY.jpg"/>
</div>
<div class = "thumbnail" ng-click = "city mum">
<image src = "Images/Mum.jpg"/>
</div>
</div>
<div class = "col-md-4">
<div class = "thumbnail" ng-click = "city SF">
<image src = "Images/SF.jpg"/>
</div>
<div class = "thumbnail" ng-click = "city LA">
<image src = "Images/LA.jpg"/>
</div>
</div>
<div class = "col-md-4">
<div class = "thumbnail" ng-click = "city del">
<image src = "Images/Del.jpg"/>
</div>
<div class = "thumbnail" ng-click = "city MA">
<image src = "Images/MA.jpg"/>
</div>
</div>
</div>
</div>
</div>
<div id = "analytics" class = "analytics">
<div class = "container">
<div>
<h2><center>Plan better with data</center></h2>
<p>Data is constantly churned, filtered and updated. Forget numbers, use graphs and make your every trip a perfect one</p>
</div>
<div class="row">
<div class="col-md-6">
<img src="Images/india-home.png" />
</div>
<div class="col-md-6">
<ul type = "">
<li>Weather patterns, rainfall graphs on every city.</li>
<li>Popularity pattern, interest rate graphs on each and every place</li>
<li>The size of the circle in this map represents the number of places covered in that city</li>
<li>Go to your city and find analytics there. Also, each place get its own graphs</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
CSS:
Navbar:
html, body{height: 100%;min-height:100%;}
header .navbar {
padding-left: 0px;
padding-right: 0px;
padding-top:30px;
transition: all .5s ease-out;
}
header .navbar-brand {
background-repeat: no-repeat;
background-position: 15px 0;
height: auto;
}
header .navbar-default {
background-color: transparent;
border:none !important;
}
header .navbar-default .navbar-nav li {
color: white;
font-size: 22px;
padding: 5px 8px;
font-weight: 700;
}
header .navbar-default .navbar-nav a {
color: white;
font-size: 14px;
padding: 5px 8px;
border-radius: 20px;
}
header .navbar-default .navbar-nav a:active {
color: white;
font-size: 14px;
padding: 5px 8px;
border-radius: 20px;
}
/** Navbar Brand **/
header .navbar-brand {
margin-left:0px;
padding: 0px;
}
/*Navbar toggle*/
header .navbar-toggle {
background-color: #279182;
}
header .navbar-default .navbar-toggle .icon-bar {
background-color: white;
}
#media only screen
and (max-width: 768px) {
header .navbar-collapse.in {
background-color: rgba(0,0,0, .5);
}
}
/*Links Navbar*/
header .navbar-default .navbar-nav a:hover {
color: rgba(0,0,0,0.5);
background-color: white;
border: 2px solid white;
}
header .navbar-default .navbar-nav a:focus{
color: white;
}
header .navbar-default .navbar-nav a:hover {
color: rgba(0,0,0,0.5);
background-color: white;
border: 2px solid white;
}
Main CSS:
.jumbotron {
position: relative;
background-image:url('Images/B.jpg');
width: 100%;
min-height: 100%;
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
margin-bottom:0px;
}
.jumbotron .container-fluid {
position: relative;
top:105px;
}
.jumbotron h1 {
color: #fff;
font-size: 60px;
font-family: Arial;
font-weight: 700;
opacity:1;
}
.jumbotron p {
font-size: 20px;
color: #fff;
text-align:center;
font-weight: 700;
opacity:1;
padding-top:10px;
}
.jumbotron a {
text-decoration: none;
width:15%;
}
.search-area{
display:block;
padding-top: 100px;
margin-top: 100px;
}
#search-button {
background:transparent;
color:white;
font: 'trebuchet ms', trebuchet;
padding:13px 25px;
border-radius:0 9px 9px 0;
-moz-border-radius:0 9px 9px 0;
-webkit-border-radius:0 9px 9px 0;
-o-border-radius:0 10px 10px 0;
border:2px solid white;
font-weight:bold;
margin-left:-4px;
}
#search-button:hover{
background-color: #5CDEBD;
border: 2px solid #5CDEBD;
}
#text-enter {
background: white;
padding:15px;
border-radius:10px 0 0 10px;
-moz-border-radius:10px 0 0 10px;
-webkit-border-radius:10px 0 0 10px;
-o-border-radius:10px 0 0 10px;
border:0 none;
width:30%;
}
/*Learn*/
.learn-more {
padding: 30px;
background-color: #8715CE;
color: white;
font-weight: 500;
font-size: 17px;
}
.learn-more h3 {
padding-top:30px;
padding-bottom:30px;
font-family: Arial, sans-serif;
font-size: 20px;
font-weight: 800;
}
.learn-more a {
color: white;
padding:10px;
border: 2px solid white;
}
.learn-more a:hover {
background-color:white;
color: rgba(0,0,0, 0.5);
text-decoration:none;
}
/*neighborhood*/
.neighborhood-guides{
background-color: #efefef;
border-bottom: 1px solid #DBDBDB;
min-height: 100%;
box-shadow: none;
}
.neighborhood-guides .row .thumbnail{
box-shadow: none;
background-color:black;
}
.neighborhood-guides .row .thumbnail img:hover {
background-color: #000;
opacity: 0.6;
}
.neighborhood-guides .container{
padding-top:25px;
}
.neighborhood-guides .container .row{
padding-top:30px;
}
.neighborhood-guides h2{
padding-top:50px;
font-weight:800;
color: #393c3d;
font-size: 48px;
}
.neighborhood-guides p{
margin-bottom:13px;
font-size: 20px;
}
.analytics
{
background-color: #15CE68;
min-height: 130%;
color:white;
}
.analytics ul li{
list-style: none;
padding-top: 60px;
font-size: 20px;
font-weight: 700;
}
.analytics h2{
font-weight: 900;
padding-top:6%;
font-size: 48px;
}
.analytics .container p{
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
font-size: 20px;
}
.analytics img{
max-height: 600px;
}
If somebody could help me with this, I would be really grateful, this has been burdening me for a week now.
There are a couple of things that you might find helpful
Remove the second jQuery link. You are already getting jQuery from the Google CDN
Remove the min-height for your images, or use percentages instead of a fixed pixel value
Always better to use percentages than fixed pixel length for the overall layout styles for your website
Don't mix up with both percentage and pixel values for the same element, unless it is unavoidable