CSS the URL image is not covering the viewport












1














I am only getting a small piece of the image I set using background URL. I can see the image in the background but it's like zoom in. I have used background-size: cover, set the height and width to 100%and display: table; right now I don't know what else is there to do. Can anyone help me with this problem?






.intro {
height: 100%;
width: 100%;
margin: auto;
display: table;
top: 0;
background-size: cover;
background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
}
.intro .inner{
display: table-cell;
vertical-align: middle;
width: 100%;
max-width: none;
}
.content {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
.content h1 {
font-family: "Yantramana";
font-size: 600%;
font-weight: 100;
color: #E1EFE9;
line-height: 70%;
}
.btn{
font-family: "montserrat";
font-size: 135%;
font-weight: 400;
color: #3A6168;
text-transform: uppercase;
text-decoration: none;
border: solid #3A6168;
padding: 10px 20px;
border-radius: 9px;
transition: all 0.7s;
}
.btn:hover {
color: #CBDFD6;
border: solid #CBDFD6;

}
/*--- Media Queries --*/
@media screen and (max-width: 900px) {

}
@media screen and (max-width: 768px) {

}
@media screen and (max-width: 480px) {

}

<head>
<title>Full Screen Landing Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link href="css/animate.css" rel="stylesheet"/>
<link href="css/waypoints.css" rel="stylesheet"/>
<script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
<script src="js/waypoints.js" type="text/javascript"></script>
</head>
<body>
<section class="intro">
<div class="inner">
<div class="content">
<section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
<h1>Traveling.com</h1>
</section>
<section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
<a class="btn" href="#">Get Started</a>
</div>
</div>
</section>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</body>
</html>












share|improve this question





























    1














    I am only getting a small piece of the image I set using background URL. I can see the image in the background but it's like zoom in. I have used background-size: cover, set the height and width to 100%and display: table; right now I don't know what else is there to do. Can anyone help me with this problem?






    .intro {
    height: 100%;
    width: 100%;
    margin: auto;
    display: table;
    top: 0;
    background-size: cover;
    background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
    }
    .intro .inner{
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    max-width: none;
    }
    .content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    }
    .content h1 {
    font-family: "Yantramana";
    font-size: 600%;
    font-weight: 100;
    color: #E1EFE9;
    line-height: 70%;
    }
    .btn{
    font-family: "montserrat";
    font-size: 135%;
    font-weight: 400;
    color: #3A6168;
    text-transform: uppercase;
    text-decoration: none;
    border: solid #3A6168;
    padding: 10px 20px;
    border-radius: 9px;
    transition: all 0.7s;
    }
    .btn:hover {
    color: #CBDFD6;
    border: solid #CBDFD6;

    }
    /*--- Media Queries --*/
    @media screen and (max-width: 900px) {

    }
    @media screen and (max-width: 768px) {

    }
    @media screen and (max-width: 480px) {

    }

    <head>
    <title>Full Screen Landing Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <link href="css/animate.css" rel="stylesheet"/>
    <link href="css/waypoints.css" rel="stylesheet"/>
    <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
    <script src="js/waypoints.js" type="text/javascript"></script>
    </head>
    <body>
    <section class="intro">
    <div class="inner">
    <div class="content">
    <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
    <h1>Traveling.com</h1>
    </section>
    <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
    <a class="btn" href="#">Get Started</a>
    </div>
    </div>
    </section>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </body>
    </html>












    share|improve this question



























      1












      1








      1







      I am only getting a small piece of the image I set using background URL. I can see the image in the background but it's like zoom in. I have used background-size: cover, set the height and width to 100%and display: table; right now I don't know what else is there to do. Can anyone help me with this problem?






      .intro {
      height: 100%;
      width: 100%;
      margin: auto;
      display: table;
      top: 0;
      background-size: cover;
      background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
      }
      .intro .inner{
      display: table-cell;
      vertical-align: middle;
      width: 100%;
      max-width: none;
      }
      .content {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      }
      .content h1 {
      font-family: "Yantramana";
      font-size: 600%;
      font-weight: 100;
      color: #E1EFE9;
      line-height: 70%;
      }
      .btn{
      font-family: "montserrat";
      font-size: 135%;
      font-weight: 400;
      color: #3A6168;
      text-transform: uppercase;
      text-decoration: none;
      border: solid #3A6168;
      padding: 10px 20px;
      border-radius: 9px;
      transition: all 0.7s;
      }
      .btn:hover {
      color: #CBDFD6;
      border: solid #CBDFD6;

      }
      /*--- Media Queries --*/
      @media screen and (max-width: 900px) {

      }
      @media screen and (max-width: 768px) {

      }
      @media screen and (max-width: 480px) {

      }

      <head>
      <title>Full Screen Landing Page</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" type="text/css" href="style.css">
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
      <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
      <link href="css/animate.css" rel="stylesheet"/>
      <link href="css/waypoints.css" rel="stylesheet"/>
      <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
      <script src="js/waypoints.js" type="text/javascript"></script>
      </head>
      <body>
      <section class="intro">
      <div class="inner">
      <div class="content">
      <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
      <h1>Traveling.com</h1>
      </section>
      <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
      <a class="btn" href="#">Get Started</a>
      </div>
      </div>
      </section>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </body>
      </html>












      share|improve this question















      I am only getting a small piece of the image I set using background URL. I can see the image in the background but it's like zoom in. I have used background-size: cover, set the height and width to 100%and display: table; right now I don't know what else is there to do. Can anyone help me with this problem?






      .intro {
      height: 100%;
      width: 100%;
      margin: auto;
      display: table;
      top: 0;
      background-size: cover;
      background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
      }
      .intro .inner{
      display: table-cell;
      vertical-align: middle;
      width: 100%;
      max-width: none;
      }
      .content {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      }
      .content h1 {
      font-family: "Yantramana";
      font-size: 600%;
      font-weight: 100;
      color: #E1EFE9;
      line-height: 70%;
      }
      .btn{
      font-family: "montserrat";
      font-size: 135%;
      font-weight: 400;
      color: #3A6168;
      text-transform: uppercase;
      text-decoration: none;
      border: solid #3A6168;
      padding: 10px 20px;
      border-radius: 9px;
      transition: all 0.7s;
      }
      .btn:hover {
      color: #CBDFD6;
      border: solid #CBDFD6;

      }
      /*--- Media Queries --*/
      @media screen and (max-width: 900px) {

      }
      @media screen and (max-width: 768px) {

      }
      @media screen and (max-width: 480px) {

      }

      <head>
      <title>Full Screen Landing Page</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" type="text/css" href="style.css">
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
      <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
      <link href="css/animate.css" rel="stylesheet"/>
      <link href="css/waypoints.css" rel="stylesheet"/>
      <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
      <script src="js/waypoints.js" type="text/javascript"></script>
      </head>
      <body>
      <section class="intro">
      <div class="inner">
      <div class="content">
      <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
      <h1>Traveling.com</h1>
      </section>
      <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
      <a class="btn" href="#">Get Started</a>
      </div>
      </div>
      </section>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </body>
      </html>








      .intro {
      height: 100%;
      width: 100%;
      margin: auto;
      display: table;
      top: 0;
      background-size: cover;
      background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
      }
      .intro .inner{
      display: table-cell;
      vertical-align: middle;
      width: 100%;
      max-width: none;
      }
      .content {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      }
      .content h1 {
      font-family: "Yantramana";
      font-size: 600%;
      font-weight: 100;
      color: #E1EFE9;
      line-height: 70%;
      }
      .btn{
      font-family: "montserrat";
      font-size: 135%;
      font-weight: 400;
      color: #3A6168;
      text-transform: uppercase;
      text-decoration: none;
      border: solid #3A6168;
      padding: 10px 20px;
      border-radius: 9px;
      transition: all 0.7s;
      }
      .btn:hover {
      color: #CBDFD6;
      border: solid #CBDFD6;

      }
      /*--- Media Queries --*/
      @media screen and (max-width: 900px) {

      }
      @media screen and (max-width: 768px) {

      }
      @media screen and (max-width: 480px) {

      }

      <head>
      <title>Full Screen Landing Page</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" type="text/css" href="style.css">
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
      <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
      <link href="css/animate.css" rel="stylesheet"/>
      <link href="css/waypoints.css" rel="stylesheet"/>
      <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
      <script src="js/waypoints.js" type="text/javascript"></script>
      </head>
      <body>
      <section class="intro">
      <div class="inner">
      <div class="content">
      <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
      <h1>Traveling.com</h1>
      </section>
      <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
      <a class="btn" href="#">Get Started</a>
      </div>
      </div>
      </section>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </body>
      </html>





      .intro {
      height: 100%;
      width: 100%;
      margin: auto;
      display: table;
      top: 0;
      background-size: cover;
      background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
      }
      .intro .inner{
      display: table-cell;
      vertical-align: middle;
      width: 100%;
      max-width: none;
      }
      .content {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      }
      .content h1 {
      font-family: "Yantramana";
      font-size: 600%;
      font-weight: 100;
      color: #E1EFE9;
      line-height: 70%;
      }
      .btn{
      font-family: "montserrat";
      font-size: 135%;
      font-weight: 400;
      color: #3A6168;
      text-transform: uppercase;
      text-decoration: none;
      border: solid #3A6168;
      padding: 10px 20px;
      border-radius: 9px;
      transition: all 0.7s;
      }
      .btn:hover {
      color: #CBDFD6;
      border: solid #CBDFD6;

      }
      /*--- Media Queries --*/
      @media screen and (max-width: 900px) {

      }
      @media screen and (max-width: 768px) {

      }
      @media screen and (max-width: 480px) {

      }

      <head>
      <title>Full Screen Landing Page</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" type="text/css" href="style.css">
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
      <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
      <link href="css/animate.css" rel="stylesheet"/>
      <link href="css/waypoints.css" rel="stylesheet"/>
      <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
      <script src="js/waypoints.js" type="text/javascript"></script>
      </head>
      <body>
      <section class="intro">
      <div class="inner">
      <div class="content">
      <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
      <h1>Traveling.com</h1>
      </section>
      <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
      <a class="btn" href="#">Get Started</a>
      </div>
      </div>
      </section>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
      quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
      consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
      proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </body>
      </html>






      javascript html css






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 '18 at 23:20









      Harsha pps

      94611122




      94611122










      asked Nov 19 '18 at 19:44









      Ross LintonRoss Linton

      123




      123
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Below are some changes to the intro class which would solve the problem. I added a min-height of 100vh. So it covers atleast 1 full viewport. Next I changed the height property to 600px, so even at a very small screen, the image is still behind the button. Furthermore I put the cover property behind the declaration of the url. Otherwise css doesn't know which background-image to cover. At last I recommend setting a background-position to center. So when the image is not fully displayed (cut off), it atleast shows the focus of the image.






          .intro {
          height: 600px;
          min-height: 100vh;
          width: 100%;
          margin: auto;
          display: table;
          top: 0;
          background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
          background-size: cover;
          background-position: center;
          }
          .intro .inner{
          display: table-cell;
          vertical-align: middle;
          width: 100%;
          max-width: none;
          }
          .content {
          max-width: 600px;
          margin: 0 auto;
          text-align: center;
          }
          .content h1 {
          font-family: "Yantramana";
          font-size: 600%;
          font-weight: 100;
          color: #E1EFE9;
          line-height: 70%;
          }
          .btn{
          font-family: "montserrat";
          font-size: 135%;
          font-weight: 400;
          color: #3A6168;
          text-transform: uppercase;
          text-decoration: none;
          border: solid #3A6168;
          padding: 10px 20px;
          border-radius: 9px;
          transition: all 0.7s;
          }
          .btn:hover {
          color: #CBDFD6;
          border: solid #CBDFD6;

          }
          /*--- Media Queries --*/
          @media screen and (max-width: 900px) {

          }
          @media screen and (max-width: 768px) {

          }
          @media screen and (max-width: 480px) {

          }

          <head>
          <title>Full Screen Landing Page</title>
          <meta name="viewport" content="width=device-width, initial-scale=1">
          <link rel="stylesheet" type="text/css" href="style.css">
          <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
          <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
          <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
          <link href="css/animate.css" rel="stylesheet"/>
          <link href="css/waypoints.css" rel="stylesheet"/>
          <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
          <script src="js/waypoints.js" type="text/javascript"></script>
          </head>
          <body>
          <section class="intro">
          <div class="inner">
          <div class="content">
          <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
          <h1>Traveling.com</h1>
          </section>
          <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
          <a class="btn" href="#">Get Started</a>
          </div>
          </div>
          </section>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
          quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
          consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
          cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
          proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
          quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
          consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
          cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
          proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
          </body>
          </html>








          share|improve this answer





























            0














            Try this:



            .intro {
            height: 100vh;
            width: 100%;
            background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg)
            top center / 100% 100vh;
            display: table;
            }


            A good resource for this kind of stuff is CSS tricks.






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381610%2fcss-the-url-image-is-not-covering-the-viewport%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Below are some changes to the intro class which would solve the problem. I added a min-height of 100vh. So it covers atleast 1 full viewport. Next I changed the height property to 600px, so even at a very small screen, the image is still behind the button. Furthermore I put the cover property behind the declaration of the url. Otherwise css doesn't know which background-image to cover. At last I recommend setting a background-position to center. So when the image is not fully displayed (cut off), it atleast shows the focus of the image.






              .intro {
              height: 600px;
              min-height: 100vh;
              width: 100%;
              margin: auto;
              display: table;
              top: 0;
              background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
              background-size: cover;
              background-position: center;
              }
              .intro .inner{
              display: table-cell;
              vertical-align: middle;
              width: 100%;
              max-width: none;
              }
              .content {
              max-width: 600px;
              margin: 0 auto;
              text-align: center;
              }
              .content h1 {
              font-family: "Yantramana";
              font-size: 600%;
              font-weight: 100;
              color: #E1EFE9;
              line-height: 70%;
              }
              .btn{
              font-family: "montserrat";
              font-size: 135%;
              font-weight: 400;
              color: #3A6168;
              text-transform: uppercase;
              text-decoration: none;
              border: solid #3A6168;
              padding: 10px 20px;
              border-radius: 9px;
              transition: all 0.7s;
              }
              .btn:hover {
              color: #CBDFD6;
              border: solid #CBDFD6;

              }
              /*--- Media Queries --*/
              @media screen and (max-width: 900px) {

              }
              @media screen and (max-width: 768px) {

              }
              @media screen and (max-width: 480px) {

              }

              <head>
              <title>Full Screen Landing Page</title>
              <meta name="viewport" content="width=device-width, initial-scale=1">
              <link rel="stylesheet" type="text/css" href="style.css">
              <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
              <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
              <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
              <link href="css/animate.css" rel="stylesheet"/>
              <link href="css/waypoints.css" rel="stylesheet"/>
              <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
              <script src="js/waypoints.js" type="text/javascript"></script>
              </head>
              <body>
              <section class="intro">
              <div class="inner">
              <div class="content">
              <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
              <h1>Traveling.com</h1>
              </section>
              <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
              <a class="btn" href="#">Get Started</a>
              </div>
              </div>
              </section>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
              tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
              quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
              consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
              cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
              proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
              tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
              quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
              consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
              cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
              proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
              </body>
              </html>








              share|improve this answer


























                0














                Below are some changes to the intro class which would solve the problem. I added a min-height of 100vh. So it covers atleast 1 full viewport. Next I changed the height property to 600px, so even at a very small screen, the image is still behind the button. Furthermore I put the cover property behind the declaration of the url. Otherwise css doesn't know which background-image to cover. At last I recommend setting a background-position to center. So when the image is not fully displayed (cut off), it atleast shows the focus of the image.






                .intro {
                height: 600px;
                min-height: 100vh;
                width: 100%;
                margin: auto;
                display: table;
                top: 0;
                background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
                background-size: cover;
                background-position: center;
                }
                .intro .inner{
                display: table-cell;
                vertical-align: middle;
                width: 100%;
                max-width: none;
                }
                .content {
                max-width: 600px;
                margin: 0 auto;
                text-align: center;
                }
                .content h1 {
                font-family: "Yantramana";
                font-size: 600%;
                font-weight: 100;
                color: #E1EFE9;
                line-height: 70%;
                }
                .btn{
                font-family: "montserrat";
                font-size: 135%;
                font-weight: 400;
                color: #3A6168;
                text-transform: uppercase;
                text-decoration: none;
                border: solid #3A6168;
                padding: 10px 20px;
                border-radius: 9px;
                transition: all 0.7s;
                }
                .btn:hover {
                color: #CBDFD6;
                border: solid #CBDFD6;

                }
                /*--- Media Queries --*/
                @media screen and (max-width: 900px) {

                }
                @media screen and (max-width: 768px) {

                }
                @media screen and (max-width: 480px) {

                }

                <head>
                <title>Full Screen Landing Page</title>
                <meta name="viewport" content="width=device-width, initial-scale=1">
                <link rel="stylesheet" type="text/css" href="style.css">
                <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
                <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
                <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
                <link href="css/animate.css" rel="stylesheet"/>
                <link href="css/waypoints.css" rel="stylesheet"/>
                <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
                <script src="js/waypoints.js" type="text/javascript"></script>
                </head>
                <body>
                <section class="intro">
                <div class="inner">
                <div class="content">
                <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
                <h1>Traveling.com</h1>
                </section>
                <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
                <a class="btn" href="#">Get Started</a>
                </div>
                </div>
                </section>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                </body>
                </html>








                share|improve this answer
























                  0












                  0








                  0






                  Below are some changes to the intro class which would solve the problem. I added a min-height of 100vh. So it covers atleast 1 full viewport. Next I changed the height property to 600px, so even at a very small screen, the image is still behind the button. Furthermore I put the cover property behind the declaration of the url. Otherwise css doesn't know which background-image to cover. At last I recommend setting a background-position to center. So when the image is not fully displayed (cut off), it atleast shows the focus of the image.






                  .intro {
                  height: 600px;
                  min-height: 100vh;
                  width: 100%;
                  margin: auto;
                  display: table;
                  top: 0;
                  background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
                  background-size: cover;
                  background-position: center;
                  }
                  .intro .inner{
                  display: table-cell;
                  vertical-align: middle;
                  width: 100%;
                  max-width: none;
                  }
                  .content {
                  max-width: 600px;
                  margin: 0 auto;
                  text-align: center;
                  }
                  .content h1 {
                  font-family: "Yantramana";
                  font-size: 600%;
                  font-weight: 100;
                  color: #E1EFE9;
                  line-height: 70%;
                  }
                  .btn{
                  font-family: "montserrat";
                  font-size: 135%;
                  font-weight: 400;
                  color: #3A6168;
                  text-transform: uppercase;
                  text-decoration: none;
                  border: solid #3A6168;
                  padding: 10px 20px;
                  border-radius: 9px;
                  transition: all 0.7s;
                  }
                  .btn:hover {
                  color: #CBDFD6;
                  border: solid #CBDFD6;

                  }
                  /*--- Media Queries --*/
                  @media screen and (max-width: 900px) {

                  }
                  @media screen and (max-width: 768px) {

                  }
                  @media screen and (max-width: 480px) {

                  }

                  <head>
                  <title>Full Screen Landing Page</title>
                  <meta name="viewport" content="width=device-width, initial-scale=1">
                  <link rel="stylesheet" type="text/css" href="style.css">
                  <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
                  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
                  <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
                  <link href="css/animate.css" rel="stylesheet"/>
                  <link href="css/waypoints.css" rel="stylesheet"/>
                  <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
                  <script src="js/waypoints.js" type="text/javascript"></script>
                  </head>
                  <body>
                  <section class="intro">
                  <div class="inner">
                  <div class="content">
                  <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
                  <h1>Traveling.com</h1>
                  </section>
                  <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
                  <a class="btn" href="#">Get Started</a>
                  </div>
                  </div>
                  </section>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  </body>
                  </html>








                  share|improve this answer












                  Below are some changes to the intro class which would solve the problem. I added a min-height of 100vh. So it covers atleast 1 full viewport. Next I changed the height property to 600px, so even at a very small screen, the image is still behind the button. Furthermore I put the cover property behind the declaration of the url. Otherwise css doesn't know which background-image to cover. At last I recommend setting a background-position to center. So when the image is not fully displayed (cut off), it atleast shows the focus of the image.






                  .intro {
                  height: 600px;
                  min-height: 100vh;
                  width: 100%;
                  margin: auto;
                  display: table;
                  top: 0;
                  background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
                  background-size: cover;
                  background-position: center;
                  }
                  .intro .inner{
                  display: table-cell;
                  vertical-align: middle;
                  width: 100%;
                  max-width: none;
                  }
                  .content {
                  max-width: 600px;
                  margin: 0 auto;
                  text-align: center;
                  }
                  .content h1 {
                  font-family: "Yantramana";
                  font-size: 600%;
                  font-weight: 100;
                  color: #E1EFE9;
                  line-height: 70%;
                  }
                  .btn{
                  font-family: "montserrat";
                  font-size: 135%;
                  font-weight: 400;
                  color: #3A6168;
                  text-transform: uppercase;
                  text-decoration: none;
                  border: solid #3A6168;
                  padding: 10px 20px;
                  border-radius: 9px;
                  transition: all 0.7s;
                  }
                  .btn:hover {
                  color: #CBDFD6;
                  border: solid #CBDFD6;

                  }
                  /*--- Media Queries --*/
                  @media screen and (max-width: 900px) {

                  }
                  @media screen and (max-width: 768px) {

                  }
                  @media screen and (max-width: 480px) {

                  }

                  <head>
                  <title>Full Screen Landing Page</title>
                  <meta name="viewport" content="width=device-width, initial-scale=1">
                  <link rel="stylesheet" type="text/css" href="style.css">
                  <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
                  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
                  <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
                  <link href="css/animate.css" rel="stylesheet"/>
                  <link href="css/waypoints.css" rel="stylesheet"/>
                  <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
                  <script src="js/waypoints.js" type="text/javascript"></script>
                  </head>
                  <body>
                  <section class="intro">
                  <div class="inner">
                  <div class="content">
                  <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
                  <h1>Traveling.com</h1>
                  </section>
                  <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
                  <a class="btn" href="#">Get Started</a>
                  </div>
                  </div>
                  </section>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  </body>
                  </html>








                  .intro {
                  height: 600px;
                  min-height: 100vh;
                  width: 100%;
                  margin: auto;
                  display: table;
                  top: 0;
                  background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
                  background-size: cover;
                  background-position: center;
                  }
                  .intro .inner{
                  display: table-cell;
                  vertical-align: middle;
                  width: 100%;
                  max-width: none;
                  }
                  .content {
                  max-width: 600px;
                  margin: 0 auto;
                  text-align: center;
                  }
                  .content h1 {
                  font-family: "Yantramana";
                  font-size: 600%;
                  font-weight: 100;
                  color: #E1EFE9;
                  line-height: 70%;
                  }
                  .btn{
                  font-family: "montserrat";
                  font-size: 135%;
                  font-weight: 400;
                  color: #3A6168;
                  text-transform: uppercase;
                  text-decoration: none;
                  border: solid #3A6168;
                  padding: 10px 20px;
                  border-radius: 9px;
                  transition: all 0.7s;
                  }
                  .btn:hover {
                  color: #CBDFD6;
                  border: solid #CBDFD6;

                  }
                  /*--- Media Queries --*/
                  @media screen and (max-width: 900px) {

                  }
                  @media screen and (max-width: 768px) {

                  }
                  @media screen and (max-width: 480px) {

                  }

                  <head>
                  <title>Full Screen Landing Page</title>
                  <meta name="viewport" content="width=device-width, initial-scale=1">
                  <link rel="stylesheet" type="text/css" href="style.css">
                  <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
                  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
                  <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
                  <link href="css/animate.css" rel="stylesheet"/>
                  <link href="css/waypoints.css" rel="stylesheet"/>
                  <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
                  <script src="js/waypoints.js" type="text/javascript"></script>
                  </head>
                  <body>
                  <section class="intro">
                  <div class="inner">
                  <div class="content">
                  <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
                  <h1>Traveling.com</h1>
                  </section>
                  <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
                  <a class="btn" href="#">Get Started</a>
                  </div>
                  </div>
                  </section>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  </body>
                  </html>





                  .intro {
                  height: 600px;
                  min-height: 100vh;
                  width: 100%;
                  margin: auto;
                  display: table;
                  top: 0;
                  background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg);
                  background-size: cover;
                  background-position: center;
                  }
                  .intro .inner{
                  display: table-cell;
                  vertical-align: middle;
                  width: 100%;
                  max-width: none;
                  }
                  .content {
                  max-width: 600px;
                  margin: 0 auto;
                  text-align: center;
                  }
                  .content h1 {
                  font-family: "Yantramana";
                  font-size: 600%;
                  font-weight: 100;
                  color: #E1EFE9;
                  line-height: 70%;
                  }
                  .btn{
                  font-family: "montserrat";
                  font-size: 135%;
                  font-weight: 400;
                  color: #3A6168;
                  text-transform: uppercase;
                  text-decoration: none;
                  border: solid #3A6168;
                  padding: 10px 20px;
                  border-radius: 9px;
                  transition: all 0.7s;
                  }
                  .btn:hover {
                  color: #CBDFD6;
                  border: solid #CBDFD6;

                  }
                  /*--- Media Queries --*/
                  @media screen and (max-width: 900px) {

                  }
                  @media screen and (max-width: 768px) {

                  }
                  @media screen and (max-width: 480px) {

                  }

                  <head>
                  <title>Full Screen Landing Page</title>
                  <meta name="viewport" content="width=device-width, initial-scale=1">
                  <link rel="stylesheet" type="text/css" href="style.css">
                  <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
                  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
                  <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
                  <link href="css/animate.css" rel="stylesheet"/>
                  <link href="css/waypoints.css" rel="stylesheet"/>
                  <script src="js/jquery.waypoints.min.js" type="text/javascript"></script>
                  <script src="js/waypoints.js" type="text/javascript"></script>
                  </head>
                  <body>
                  <section class="intro">
                  <div class="inner">
                  <div class="content">
                  <section class="os-animation" data-os-animation="bounceInUp" data-os-animation-delay=".3s">
                  <h1>Traveling.com</h1>
                  </section>
                  <section class="os-animation" data-os-animation="slideInLeft" data-os-animation-delay="0s">
                  <a class="btn" href="#">Get Started</a>
                  </div>
                  </div>
                  </section>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  </body>
                  </html>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 19 '18 at 20:37









                  Rup7ur3Rup7ur3

                  496




                  496

























                      0














                      Try this:



                      .intro {
                      height: 100vh;
                      width: 100%;
                      background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg)
                      top center / 100% 100vh;
                      display: table;
                      }


                      A good resource for this kind of stuff is CSS tricks.






                      share|improve this answer


























                        0














                        Try this:



                        .intro {
                        height: 100vh;
                        width: 100%;
                        background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg)
                        top center / 100% 100vh;
                        display: table;
                        }


                        A good resource for this kind of stuff is CSS tricks.






                        share|improve this answer
























                          0












                          0








                          0






                          Try this:



                          .intro {
                          height: 100vh;
                          width: 100%;
                          background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg)
                          top center / 100% 100vh;
                          display: table;
                          }


                          A good resource for this kind of stuff is CSS tricks.






                          share|improve this answer












                          Try this:



                          .intro {
                          height: 100vh;
                          width: 100%;
                          background:url(https://picstatio.com/download/3840x2160/c61c60/mountain-cliffs-nature-tree.jpg)
                          top center / 100% 100vh;
                          display: table;
                          }


                          A good resource for this kind of stuff is CSS tricks.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 19 '18 at 20:01









                          Katie.SunKatie.Sun

                          59714




                          59714






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381610%2fcss-the-url-image-is-not-covering-the-viewport%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              MongoDB - Not Authorized To Execute Command

                              How to fix TextFormField cause rebuild widget in Flutter

                              Npm cannot find a required file even through it is in the searched directory