Whenever the screen size changes in my code, the collapse icon appears. However, when I click on that icon, none of the contents are visible.
Another issue I am facing is that I want the background of the section element to be an image. So, I added a background-image property in CSS but it doesn't seem to be working as expected.
body {
padding-top: 70px;
}
.navbarhead{
background-color: #BDBDBD;
height: 100px;
border-style: solid;
border-right: none;
border-top: none;
border-left: none;
}
#navitem{
font-size: 20px;
color: black;
}
.btn-small{
padding:10px 25px;
}
#btnin, #btnin:hover,#btnin:focus {
color: #fff;
font-family: 'open_sanssemibold';
font-size:20px;
background-color:black;
text-decoration:none;
}
#btnup, #btnup:hover,#btnup:focus {
color: black;
font-family: 'open_sanssemibold';
font-size:20px;
background-color:white;
text-decoration:none;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>ShortFundly-LeaderBoard</title>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width, initial-scale=1.0">
<!-- Viewport Meta Tag -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap.css" media="screen">
<!-- Style sheet -->
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/leaderboard.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/leaderboard-responsive.css" media="screen">
</head>
<body>
<!--navbar starts-->
<nav class="navbar navbar-toggleable-md navbar-light bg-faded fixed-top navbarhead">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="true" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse in navbar-collapse" id="navbarTogglerDemo01">
<a class="navbar-brand" href="https://www.shortfundly.com">
<img src="https://www.shortfundly.com/tpl/main/v4/images/logo.svg" class="img-fluid" alt="Shortfundly Logo" />
</a>
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item" id="navitem">
<a class="nav-link" href="#">Community</a>
</li>
<li class="nav-item" id="navitem">
<a class="nav-link" href="#">Collaborate</a>
</li>
<li class="nav-item" id="navitem">
<a class="nav-link">LeaderBoard</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right my-lg-0 m-0">
<li><a href="" class="btn my-sm-0 my-2 btn-lg" id="btnin">sign in</a></li>
<li><a href="" class="btn my-sm-0 btn-lg m-4" id="btnup">sign up</a></li>
</ul>
</div>
</nav>
<!--navbar ends-->
<!-- HEADING STARTS -->
<section style="background-image: url('banner.png');margin-top: 100px;">
<div class="container">
<div class="Jumbotron">
<h1>My Jumbotron</h1>
<p>Think BIG with a Bootstrap Jumbotron!</p>
</div>
</div>
</section>
<!--HEADING ENDS-->
</body>
</html>
image source: imgur.com/CE0Fm.jpg