Need Help with Jumbotron Background Image


Hey guys I'm having trouble with getting my background image in my jumbotron div to fill the whole div and am instead only getting about a third of it to display onscreen. Not too sure where the mistake is but here is my code. Any help is appreciated. Thanks!

<!doctype html>
    <link rel="stylesheet" href="">
    <link href=',700' rel='stylesheet' type='text/css'>
    <link href='' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="style.css">
    <div class="header">
      <div class="container">
        <ul class="nav">
          <li class="active">Adoptly</li>

    <div class="jumbotron">
      <div class="container">
        <h1>Meet your new best friend.</h1>

    <div class="supporting">
      <div class="container">
    <div class="footer">
      <div class="container">


html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0;

/* Navigation Bar */

.header {
  background-color: #30627E;

.nav {
  list-style-type: none;
  margin-left: 0;
  text-align: center;

.nav li {
  color: #FFF;
  font-size: 20px;
  display: inline-block;
  padding: 20px 20px 20px 20px;

.nav .active {
  background: #E52364;
  font-size: 28px;

/* Jumbotron */

.jumbotron {
  background: url("");
  background-size: 100%;
  text-align: center;
  height: auto;

.jumbotron h1 {
  color: #E52364;

@media (max-width: 500px) {
  ul li {
    width: 100%;


First of all, the div class for your nav bar is the same as the div class containing the h1 heading. The class of the div container has to be different to make changes to the div.

Secondly, remove the div inside the Jumbotron is possible. If not, then try to place the background image inside the div inside the jumbotron.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.